diff --git a/app/Bootstrap/Channel.js b/app/Bootstrap/Channel.js index 1193f61..efe7ca1 100755 --- a/app/Bootstrap/Channel.js +++ b/app/Bootstrap/Channel.js @@ -5,7 +5,7 @@ define([ function (Channel, CoordinatorLink) { - function ChannelBootstrap(process) { + function ChannelBootstrap (process) { var coordinatorLink = new CoordinatorLink(process); var channel = null; diff --git a/app/Bootstrap/Client.js b/app/Bootstrap/Client.js index e9ea86a..8d11dac 100755 --- a/app/Bootstrap/Client.js +++ b/app/Bootstrap/Client.js @@ -5,7 +5,7 @@ define([ function (Networker, SocketIO) { - function Client(location, options) { + function Client (location, options) { this.socket = SocketIO.connect(location, options); this.networker = new Networker(this.socket); } diff --git a/app/Bootstrap/HttpServer.js b/app/Bootstrap/HttpServer.js index 591d85c..1c30561 100755 --- a/app/Bootstrap/HttpServer.js +++ b/app/Bootstrap/HttpServer.js @@ -5,7 +5,7 @@ define([ function (http, nodeStatic) { - function HttpServer(options) { + function HttpServer (options) { options.port = options.port || 1234; options.caching = typeof options.caching != 'undefined' ? options.caching : true; options.rootDirectory = options.rootDirectory || './'; diff --git a/app/Bootstrap/Server.js b/app/Bootstrap/Server.js index ffa5b2e..2aa5dc7 100755 --- a/app/Bootstrap/Server.js +++ b/app/Bootstrap/Server.js @@ -6,7 +6,7 @@ define([ function (HttpServer, Socket, Coordinator) { - function Server(options) { + function Server (options) { coordinator = new Coordinator(); httpServer = new HttpServer(options); this.socket = new Socket(httpServer.getServer(), options, coordinator); diff --git a/app/Bootstrap/Socket.js b/app/Bootstrap/Socket.js index d8d5e0f..917312a 100755 --- a/app/Bootstrap/Socket.js +++ b/app/Bootstrap/Socket.js @@ -4,7 +4,7 @@ define([ function (io) { - function Socket(server, options, coordinator) { + function Socket (server, options, coordinator) { options.logLevel = typeof options.logLevel != 'undefined' ? options.logLevel : 0; diff --git a/app/Game/Client/Collision/Detector.js b/app/Game/Client/Collision/Detector.js index 46af3b9..bd30450 100755 --- a/app/Game/Client/Collision/Detector.js +++ b/app/Game/Client/Collision/Detector.js @@ -5,7 +5,7 @@ define([ function (Box2D, Parent) { - function Detector(me) { + function Detector (me) { Parent.call(this); this.me = me; } diff --git a/app/Game/Client/Control/KeyboardController.js b/app/Game/Client/Control/KeyboardController.js index fabe927..3273904 100755 --- a/app/Game/Client/Control/KeyboardController.js +++ b/app/Game/Client/Control/KeyboardController.js @@ -1,6 +1,6 @@ define(["Game/Core/Control/InputController", "Game/Client/Control/KeyboardInput"], function (InputController, KeyboardInput){ - function KeyboardController(me, gameController) { + function KeyboardController (me, gameController) { this.gameController = gameController; this.inputController = new InputController(me); diff --git a/app/Game/Client/Networker.js b/app/Game/Client/Networker.js index b8dffc3..464e272 100755 --- a/app/Game/Client/Networker.js +++ b/app/Game/Client/Networker.js @@ -5,7 +5,7 @@ define([ function (ProtocolHelper, GameController) { - function Networker(socketLink) { + function Networker (socketLink) { this.socketLink = socketLink; this.gameController = null; diff --git a/app/Game/Client/View/CameraController.js b/app/Game/Client/View/CameraController.js index 3aba751..3c514f8 100755 --- a/app/Game/Client/View/CameraController.js +++ b/app/Game/Client/View/CameraController.js @@ -1,6 +1,6 @@ define(['Lib/Vendor/Three', 'Game/Config/Settings'], function (Three, Settings) { - function CameraController(isOrthographic) { + function CameraController (isOrthographic) { isOrthographic = typeof isOrthographic == 'undefined' ? true diff --git a/app/Game/Client/View/ViewController.js b/app/Game/Client/View/ViewController.js index 85a91d2..fb84ec6 100755 --- a/app/Game/Client/View/ViewController.js +++ b/app/Game/Client/View/ViewController.js @@ -7,7 +7,7 @@ var requires = [ define(requires, function (DomController, Three, Settings, CameraController){ - function ViewController(){ + function ViewController (){ this.mesh = null; this.scene = null; diff --git a/app/Game/Core/Collision/Detector.js b/app/Game/Core/Collision/Detector.js index 27bb034..836dfdb 100755 --- a/app/Game/Core/Collision/Detector.js +++ b/app/Game/Core/Collision/Detector.js @@ -5,7 +5,7 @@ define([ function (Box2D, Parent) { - function Detector() { + function Detector () { this.listener = new Box2D.Dynamics.b2ContactListener(); this.listener.chuckDetector = this; this.listener.BeginContact = this.BeginContact; diff --git a/app/Game/Core/Control/InputController.js b/app/Game/Core/Control/InputController.js index c01bcfd..125d83a 100755 --- a/app/Game/Core/Control/InputController.js +++ b/app/Game/Core/Control/InputController.js @@ -1,6 +1,6 @@ define(function (){ - function InputController(player) { + function InputController (player) { this.player = player; diff --git a/app/Game/Core/GameController.js b/app/Game/Core/GameController.js index 9f98864..447f016 100755 --- a/app/Game/Core/GameController.js +++ b/app/Game/Core/GameController.js @@ -6,7 +6,7 @@ define([ function (Engine, Level, Player) { - function GameController(physicsEngine) { + function GameController (physicsEngine) { this.players = {}; if (! physicsEngine instanceof Engine) { diff --git a/app/Game/Core/Loader/Level.js b/app/Game/Core/Loader/Level.js index 259519f..91ddabc 100755 --- a/app/Game/Core/Loader/Level.js +++ b/app/Game/Core/Loader/Level.js @@ -1,7 +1,7 @@ define(["Game/Config/Settings", "Lib/Vendor/Box2D", "Game/Core/Collision/Detector"], function (Settings, Box2D, CollisionDetector) { // Public - function Level(path, engine) { + function Level (path, engine) { this.path = path; this.engine = engine; this.levelObject = null; diff --git a/app/Game/Core/NotificationCenter.js b/app/Game/Core/NotificationCenter.js index a424870..9c824e7 100755 --- a/app/Game/Core/NotificationCenter.js +++ b/app/Game/Core/NotificationCenter.js @@ -3,7 +3,7 @@ define([ function () { - function NotificationCenter() { + function NotificationCenter () { this.topics = {}; this.subUid = -1; } diff --git a/app/Game/Core/User.js b/app/Game/Core/User.js index 5d8a2a2..3934880 100755 --- a/app/Game/Core/User.js +++ b/app/Game/Core/User.js @@ -1,6 +1,6 @@ define(function () { - function User(id) { + function User (id) { this.id = id; } diff --git a/app/Game/Server/Channel.js b/app/Game/Server/Channel.js index 083c234..2da0f5f 100755 --- a/app/Game/Server/Channel.js +++ b/app/Game/Server/Channel.js @@ -5,7 +5,7 @@ function (GameController, NotificationCenter) { - function Channel(coordinatorLink) { + function Channel (coordinatorLink) { var self = this; this.coordinatorLink = coordinatorLink; diff --git a/app/Game/Server/Collision/Detector.js b/app/Game/Server/Collision/Detector.js index 6892db9..fddbc61 100755 --- a/app/Game/Server/Collision/Detector.js +++ b/app/Game/Server/Collision/Detector.js @@ -5,7 +5,7 @@ define([ function (Box2D, Parent) { - function Detector() { + function Detector () { Parent.call(this); } diff --git a/app/Game/Server/CoordinatorLink.js b/app/Game/Server/CoordinatorLink.js index 7d7a7ff..5287849 100755 --- a/app/Game/Server/CoordinatorLink.js +++ b/app/Game/Server/CoordinatorLink.js @@ -3,7 +3,7 @@ define([ function () { - function CoordinatorLink(process) { + function CoordinatorLink (process) { this.process = process; } diff --git a/app/Game/Server/User.js b/app/Game/Server/User.js index f4f093b..90e4352 100755 --- a/app/Game/Server/User.js +++ b/app/Game/Server/User.js @@ -6,7 +6,7 @@ define([ function (Parent, ProtocolHelper, NotificationCenter) { - function User(id, coordinator) { + function User (id, coordinator) { Parent.call(this, id); this.id = socketLink.id; this.socketLink = socketLink; diff --git a/app/Lobby/Coordinator.js b/app/Lobby/Coordinator.js index d1eb043..8c8bc57 100755 --- a/app/Lobby/Coordinator.js +++ b/app/Lobby/Coordinator.js @@ -8,7 +8,7 @@ function (User, Channel, childProcess) { var fork = childProcess.fork; - function Coordinator() { + function Coordinator () { this.channels = {}; this.lobbyUsers = {}; } diff --git a/app/Lobby/User.js b/app/Lobby/User.js index e0b7c65..7e5bc8e 100755 --- a/app/Lobby/User.js +++ b/app/Lobby/User.js @@ -5,7 +5,7 @@ define([ function (Parent, ProtocolHelper) { - function User(socketLink, coordinator) { + function User (socketLink, coordinator) { Parent.call(this, socketLink.id); this.coordinator = coordinator;