replaced all tabs with 4 spaces

This commit is contained in:
logsol 2012-07-28 13:26:05 +02:00
parent 5d11540c55
commit 26f3d22db7
30 changed files with 1017 additions and 1011 deletions

View file

@ -34,14 +34,7 @@ function(ProtocolHelper, GameController) {
console.log('connected.')
this.join('dungeon');
}
/*
Networker.prototype.onMessage = function(message) {
var self = this;
ProtocolHelper.runCommands(message, function(command, options) {
self.processControlCommand(command, options);
});
}
*/
Networker.prototype.onDisconnect = function() {
if(this.gameController) this.gameController.destruct();
this.gameController = null;
@ -52,14 +45,11 @@ function(ProtocolHelper, GameController) {
this.sendCommand('join', channelName);
}
Networker.prototype.sendCommand = function(command, options) {
var message = ProtocolHelper.encodeCommand(command, options);
this.socketLink.send(message);
}
/*
Networker.prototype.onJoinSuccess = function(options) {
this.gameController = new GameController(options.id);
this.gameController.loadLevel("default.json")
this.gameController.loadLevel("default.json");
/*
console.log("Joined " + options.channelName);
if (options.userIds && options.userIds.length > 0) {
@ -67,6 +57,22 @@ function(ProtocolHelper, GameController) {
this.gameController.userJoined(options.userIds[i])
}
}
*/
}
Networker.prototype.sendCommand = function(command, options) {
var message = ProtocolHelper.encodeCommand(command, options);
this.socketLink.send(message);
}
/*
Networker.prototype.onMessage = function(message) {
var self = this;
ProtocolHelper.runCommands(message, function(command, options) {
self.processControlCommand(command, options);
});
}
Networker.prototype.onUserJoined = function(userId) {

0
app/Game/Core/Control/InputController.js Normal file → Executable file
View file

0
app/Game/Core/Player.js Normal file → Executable file
View file

0
app/Game/Core/Protocol/Helper.js Normal file → Executable file
View file

0
app/Game/Core/Protocol/Parser.js Normal file → Executable file
View file

View file

@ -1,9 +1,9 @@
define([
define([
"Game/Server/GameController",
"Game/Core/NotificationCenter"
],
],
function(GameController, NotificationCenter) {
function(GameController, NotificationCenter) {
function Channel(coordinatorLink) {
var self = this;
@ -20,7 +20,7 @@ function(GameController, NotificationCenter) {
NotificationCenter.on("processGameCommandFromUser", function(topic, args) {
self.processGameCommandFromUser.apply(self, args);
});
*/
*/
}
Channel.validateName = function(name){
@ -66,7 +66,7 @@ function(GameController, NotificationCenter) {
console.log(' created channel ' + name);
}
/*
/*
Channel.prototype.addUser = function(user){
var userIds = Object.keys(this.users);
@ -102,7 +102,7 @@ function(GameController, NotificationCenter) {
Channel.prototype.processGameCommandFromUser = function(command, options, user) {
this.gameController.progressGameCommandFromUser(command, options, user);
}
*/
*/
return Channel;
});
});

View file

@ -18,7 +18,7 @@ var options = {
logLevel: process.argv[3] || 0
};
requirejs(["Bootstrap/Server"], function(Server) {
requirejs(["Bootstrap/Server"], function (Server) {
var server = new Server(options);
inspector.server = server;
});