update of client data by server

This commit is contained in:
Jeena Paradies 2012-07-13 22:49:15 +02:00
parent 2cb401bbd3
commit c8d0a48489
11 changed files with 239 additions and 120 deletions

View file

@ -2,7 +2,7 @@ define(["Chuck/Processors/ClientProcessor"], function(ClientProcessor) {
function ClientGame(networker, id) {
this.networker = networker;
this.processor = new ClientProcessor();
this.processor = new ClientProcessor(this);
this.processor.spawnMeWithId(id);
}
@ -15,7 +15,11 @@ define(["Chuck/Processors/ClientProcessor"], function(ClientProcessor) {
};
ClientGame.prototype.processGameCommand = function(command, options){
console.log('(not implemented) processGameCommand:', command, options);
this.processor.processGameCommand(command, options);
}
ClientGame.prototype.sendGameCommand = function(command, options) {
this.networker.sendGameCommand(command, options);
}
ClientGame.prototype.destruct = function(){