added Server and Client Game

This commit is contained in:
Jeena Paradies 2012-07-13 19:33:52 +02:00
parent e959c8e7a2
commit bffb16e77c
5 changed files with 57 additions and 10 deletions

21
lib/Chuck/ServerGame.js Normal file
View file

@ -0,0 +1,21 @@
define(["Chuck/Processors/ServerProcessor"], function(ServerProcessor) {
function ServerGame(chanel) {
this.chanel = chanel;
this.processor = new ServerProcessor();
}
ServerGame.prototype.loadLevel = function(path) {
this.processor.loadLevel(path);
}
ServerGame.prototype.processGameCommand = function(command, options) {
console.log('(not implemented) processGameCommand:', command, options);
}
ServerGame.prototype.destruct = function() {
this.processor.destruct();
}
return ServerGame;
});