예제 #1
0
 /// <summary>
 /// Assigns the given tile into the level at the specified
 /// row and column.  null can be used for the tile to clear
 /// it out.
 /// </summary>
 /// <param name="tile"></param>
 /// <param name="row"></param>
 /// <param name="column"></param>
 public void Put(AbstractTile tile, int row, int column)
 {
     grid[row, column] = tile;
 }
예제 #2
0
 /// <summary>
 /// Adds a specific new tile to the level set for use in various
 /// definitions.
 /// </summary>
 /// <param name="tile"></param>
 public void AddTile(AbstractTile tile)
 {
     Tiles.Add(tile);
     tile.Id = Tiles.Count - 1;
 }