Added spawning gameCommand logic

This commit is contained in:
Logsol 2013-01-05 08:19:49 +01:00
parent 371592f167
commit fb5de522e5
8 changed files with 84 additions and 59 deletions

21
app/Game/Server/Player.js Normal file
View file

@ -0,0 +1,21 @@
define([
"Game/Core/Player"
],
function(Parent) {
function Player(id, physicsEngine) {
Parent.call(this, id, physicsEngine);
this.inputController = null;
}
Player.prototype = Object.create(Parent.prototype);
Player.prototype.setInputController = function(inputController) {
this.inputController = inputController;
}
return Player;
});