/// <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; }
/// <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; }