Esempio n. 1
0
        public static BotMap FromStanding(BotMain state, GameStanding stand)
        {
            var map = state.VisibleMap.GetMapCopy();

            foreach (var terr in stand.Territories.Values)
            {
                var territory = map.Territories[terr.ID];
                territory.OwnerPlayerID = terr.OwnerPlayerID;
                territory.Armies        = terr.NumArmies;
            }
            return(map);
        }
Esempio n. 2
0
 public DeploymentHistory(BotMain state)
 {
     BotState = state;
 }
Esempio n. 3
0
 public BotMap(BotMain state)
 {
     this.Territories = new Dictionary <TerritoryIDType, BotTerritory>();
     this.Bonuses     = new Dictionary <BonusIDType, BotBonus>();
     this.BotState    = state;
 }
Esempio n. 4
0
 public HistoryTracker(BotMain state)
 {
     this.BotState          = state;
     this.DeploymentHistory = new DeploymentHistory(state);
 }