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