private void Activate(TerrainPart terrainPart) { if (terrainPart != null && terrainPart.item is Clue) { ((Clue)terrainPart.item).MineAdded(); } }
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); } }