コード例 #1
0
    //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);
    }
コード例 #2
0
    }                                                               // 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);
    }
コード例 #3
0
 // ----------------------------------------------------------------
 //  Initialize
 // ----------------------------------------------------------------
 public GenericTile(Board _boardRef, GenericTileData _data)
 {
     base.InitializeAsTile(_boardRef, _data);
 }