//private void AddExitSpot (ExitSpotData data) { // ExitSpot prop = new ExitSpot (this, data); // allTiles.Add (prop); // objectsAddedThisMove.Add(prop); // goalObjects.Add (prop); //} private void AddGenericTile(GenericTileData data) { GenericTile obj = new GenericTile(this, data); allTiles.Add(obj); objectsAddedThisMove.Add(obj); }
} // We give each new Tile a random Guid. Only here, only when added from Levels.xml. void AddGenericTileData(TileType tileType, int col, int row) { GenericTileData data = new GenericTileData(NewGuid(), tileType, new BoardPos(col, row)); allTileDatas.Add(data); SetTileInBoard(data); }
// ---------------------------------------------------------------- // Initialize // ---------------------------------------------------------------- public GenericTile(Board _boardRef, GenericTileData _data) { base.InitializeAsTile(_boardRef, _data); }