     instance-specific logs.
     ###
 
+    ###
+    Log a message.
+    ###
     log: (args...) ->
         args[0] = "[#{@constructor.name}:#{@_id.substr(0, 8)}] " + args[0]
         console.log.apply console.log, args
 
     ###
+    Log a message.
+    ###
+    @log: (args...) ->
+        args[0] = "[#{@name}] " + args[0]
+        console.log.apply console.log, args
+
+    ###
     Constructor.
     ###
     constructor: () ->

    ###
    add_handler: (event, handler) ->
        if not @handlers[event.type]
            @handlers[event.type]

        @handlers[event.type].push handler

###
When a player joins a room,

    Constructor.
    ###
    constructor: (@id, @name) ->
        super

        @log "Creating player '#{@name}' with ID '#{@id}'"


class Game.EventManager extends Game.StartStoppable
