예제 #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);
 }