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