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