     return
 
 root.startGame = (game) ->
+    ###
+        External Function (used by something outside of this file)
+
+        Starts the given game, setting up the environment and creating the
+        gameManager.
+
+        @param game
+            The game to start.
+    ###
     console.log("Starting #{game}")
     for quest, index in root.quests
         found = quest.games.indexOf game

    return

root.waitForWrapper = (callback) ->
    root.wrapperCompiledCallback = callback
    return

root.reference = () ->

 # FRONTEND UI
root.drawGameMap = (player) ->
    descriptions = root.getGameDescriptions()
    mapDiv = $(root.UIcont)
    mapDiv.empty()

    return

root.getGame = ->
    ###
        Internal Function (used only by the code in this file)

        Gets the game currently being played.
    ###
    return getPlayer().currentGame

root.getPlayer = ->
    ###
        Internal Function (used only by the code in this file)

        Retrieves and returns the current player.
        Returns a generic player should the current player not exist.
    ###
    root.currentPlayer ?= root.load("CurrentPlayer")
    root.currentPlayer ?= {
        id : +(new Date())
