Esempio n. 1
0
        /// <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();
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AICountry"/> class.
 /// </summary>
 public AICountry() : base()
 {
     this.Strategy = StrategyFactory.GetStrategy(this);
 }