       @setButton(9, "MAP")
     @draw()
 
-  command: (text) =>
+  command: (text) ->
     switch text
       when View.LEFT then @move(-1, 0)
       when View.UP then @move(0, -1)

            if (!@map.dark or !@shadows[y][x])
              @game.markVisited(xx, yy)

  getTerrain : (x, y) =>
    tileCharacter = @game.getTile(x, y)
    Data.tiles[tileCharacter]

  getTopFeature : (x, y) =>
    for type in MapView.FEATURE_TYPES
      feature = @game.getFeature(x, y, type)
      if (feature)
        return feature

  move : (x, y) =>
    realMove = !(x == 0 and y == 0)
    tx = @posX + x
    ty = @posY + y

              @gurk.pushView(new AlertView(@gurk, Data.icons.combat, "Encounter", text, "combat"))
              return null

  setMap : (mapName, x, y) ->
    super(mapName, x, y)
    @tileMap.setMap(mapName)
    if (@map.music)
      @gurk.playMusic(@map.music)

  addButtonForFeature: (feature, realMove) ->
    @clearButton(5)
    switch feature.type
      when "sign"
