public void PlaceEnemyCreatures() { foreach (Creature creature in Creature.creatures.Values) { if (!creature.isPlayer) { HexCell cell = hexGrid.GetRandomCellAboveWater(); cell.AddCreature(creature, creature.population); } } }
public void InitialPhase() { if (selectedCell.IsUnderwater) { return; } foreach (Creature creature in Creature.creatures.Values) { if (creature.isPlayer) { selectedCell.AddCreature(creature, creature.population); initialPhase = false; NextPhase(); } } }
public void MoveInDirection(HexCell neighbor, HexCell cell, int amount) { cell.RemoveCreature(Creature.player, amount); neighbor.AddCreature(Creature.player, amount); }