/// <summary> /// Takes a turn for the AI Country. /// </summary> internal override void DoTurn() { UpdateResourceHashtable(); DoTurnBasedNegotiations(); Unit unit; for (int i = 0; i < Units.Count; i++) { if (Units.Count < (i + 1)) { return; } unit = (Unit)this.Units[i]; unit.DoTurn(); } foreach (AICity city in Cities) { city.DoTurn(); } this.Strategy = StrategyFactory.GetStrategy(this); IncrementScore(); }
/// <summary> /// Initializes a new instance of the <see cref="AICountry"/> class. /// </summary> public AICountry() : base() { this.Strategy = StrategyFactory.GetStrategy(this); }