예제 #1
0
        public void SetTileSpace(TileScript tile)
        {
            tile.spaceInUse = true;
            for (int i = 0; i < listOfBlockedOffAreas.Count; i++)
            {
                int row = (int)listOfBlockedOffAreas[i].x + tile.GetRowNum();
                int col = (int)listOfBlockedOffAreas[i].y + tile.GetColNum();

                TileScript newTile = GrabTile(row, col);

                if (newTile != null)
                {
                    newTile.spaceInUse = true;
                }
            }
        }
예제 #2
0
        public void ExposeTileArea(TileScript tile)
        {
            tile.TurnOnTile();
            for (int i = 0; i < listOfBlockedOffAreas.Count; i++)
            {
                int row = (int)listOfBlockedOffAreas[i].x + tile.GetRowNum();
                int col = (int)listOfBlockedOffAreas[i].y + tile.GetColNum();

                TileScript newTile = GrabTile(row, col);

                if (newTile != null)
                {
                    newTile.TurnOffTile();
                }
            }
        }