ground work for different users on server and players on client

This commit is contained in:
Jeena Paradies 2012-07-13 21:10:08 +02:00
parent e37d1eeb2e
commit 2cb401bbd3
9 changed files with 122 additions and 54 deletions

View file

@ -25,7 +25,6 @@ define(["Protocol/Helper"], function(ProtocolHelper) {
User.prototype.setChannel = function(channel){
this.channel = channel;
this.sendCommand('joinSuccess', channel.name);
}
User.prototype.sendCommand = function(command, options) {
@ -56,7 +55,7 @@ define(["Protocol/Helper"], function(ProtocolHelper) {
break;
case 'gameCommand':
//this.channel.game.processGameCommand(options);
this.channel.processGameCommandFromUser(options, this);
break;
default: