Example #1
0
        public void MoveToColony(Tile tile, int population)
        {
            var colony = Colonies.Where(c => c.Tile == tile).First();

            colony.Population += population;
            if (colony.Population > MaximumPopulationInColony)
            {
                colony.Population = MaximumPopulationInColony;
            }
        }
Example #2
0
 public void DestroyColony(Tile tile)
 {
     Colonies.Remove(Colonies.Where(colony => colony.Tile == tile).First());
     tile.OwnedBy = null;
 }