     ###
     Event queue.
     ###
-    events: []
+    events: null
 
     ###
     Event handlers.
     ###
-    handlers: {}
+    handlers: null
+
+    ###
+    {@inheritDoc}
+    ###
+    constructor: () ->
+        super
+
+        @events = []
+        @handlers = {}
 
     ###
     {@inheritDoc}

            difficulty: @difficulty
            level: @level.getAsObject()
            entities: (v.getAsObject() for k, v of @entities)


class Game.Client extends Game.Loggable

    constructor: (@id, @name) ->
        super

        @level = new Game.Level [12, 12, 6]
        @entities = {}
        @clients = {}
        @difficulty = 1
        @state = Game.State.ACTIVE
        @spawnApple()

    ###
    Spawn an apply in the level attached to this room.
    ###
    spawnApple: () ->
        entity = new Game.AppleEntity
        entity.position = @level.getRandomCoordinate()
        @level.world[entity.position[0]][entity.position[1]][entity.position[2]] = entity
        @addEntity entity

    ###
    Set the primary difficulty.
