예제 #1
0
 private void Activate(TerrainPart terrainPart)
 {
     if (terrainPart != null && terrainPart.item is Clue)
     {
         ((Clue)terrainPart.item).MineAdded();
     }
 }
예제 #2
0
        public void do_movement(int[] location, string action)
        {
            TerrainPart terrainPart = Terrain.SelectTerrainPart(location);

            if (terrainPart.item == null)
            {
                PutClues();
                PutMines(location);
            }
            if (action.Equals("unearth"))
            {
                Player.Play(Terrain, location);
            }
            else if (action.Equals("pennant"))
            {
                Player.TogglePennantIn(Terrain, location);
            }
        }