Пример #1
0
 public void PlaceEnemyCreatures()
 {
     foreach (Creature creature in Creature.creatures.Values)
     {
         if (!creature.isPlayer)
         {
             HexCell cell = hexGrid.GetRandomCellAboveWater();
             cell.AddCreature(creature, creature.population);
         }
     }
 }
Пример #2
0
 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();
         }
     }
 }
Пример #3
0
 public void MoveInDirection(HexCell neighbor, HexCell cell, int amount)
 {
     cell.RemoveCreature(Creature.player, amount);
     neighbor.AddCreature(Creature.player, amount);
 }