예제 #1
0
 public static bool CreateMapTile(TileType tile, int posX, int posY)
 {
     try
     {
         MapTileController newTileController = new MapTileController(posX, posY, tile);
         //Debug.Log(String.Format("Tile created at {0}x{1}", posX, posY));
     }
     catch (Exception e)
     {
         Debug.Log(String.Format("There was an error creating tile at location {0}x{1} -- exception: {2}", posX, posY, e));
         return false;
     }
     return true;
 }
예제 #2
0
 public CreateTowerButton(IGuiCommand command, MapTileController tile)
     : base(command,tile.PosX,tile.PosY)
 {
 }
예제 #3
0
 /// <summary>
 /// Adds the controller for the map tile sprite to the list to be accessed later.
 /// </summary>
 /// <param name="mapTileController"></param>
 public static void RegisterMapTile(MapTileController mapTileController)
 {
     MapTiles.Add(mapTileController);
 }