Exemple #1
0
        public static BotMap FromStanding(BotMain state, GameStanding stand)
        {
            Assert.Fatal(stand != null, "stand is null");

            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);
        }
Exemple #2
0
 public HistoryTracker(BotMain state)
 {
     this.BotState          = state;
     this.DeploymentHistory = new DeploymentHistory(state);
 }
Exemple #3
0
 public DeploymentHistory(BotMain state)
 {
     BotState = state;
 }
Exemple #4
0
 public BotMap(BotMain state)
 {
     this.Territories = new Dictionary <TerritoryIDType, BotTerritory>();
     this.Bonuses     = new Dictionary <BonusIDType, BotBonus>();
     this.BotState    = state;
 }