Exemple #1
0
 public AICommander(AICommanderMissionDefinition.AICommanderCategory category = AICommanderMissionDefinition.AICommanderCategory.Undefined)
 {
     this.Category      = category;
     this.Missions      = new List <AICommanderMission>();
     this.ForceArmyGUID = GameEntityGUID.Zero;
     this.InternalGUID  = GameEntityGUID.Zero;
 }
Exemple #2
0
    public int ComputeCommanderMissionNumber(AICommanderMissionDefinition.AICommanderCategory category)
    {
        int num = 0;

        for (int i = 0; i < this.aiCommanders.Count; i++)
        {
            AICommander aicommander = this.aiCommanders[i];
            num += aicommander.ComputeCommanderMissionNumber(category);
        }
        return(num);
    }
 public RequestUnitListMessage(int empireTarget, ArmyPattern pattern, float priority, AICommanderMissionDefinition.AICommanderCategory commanderCategory) : base(BlackboardLayerID.Empire)
 {
     this.Reset();
     this.CommanderCategory = commanderCategory;
     this.EmpireTarget      = empireTarget;
     this.ArmyPattern       = pattern;
     this.Priority          = priority;
 }
 public static bool IsCommanderMissionNotInteresting(AICommanderMissionDefinition.AICommanderCategory category)
 {
     return(category == AICommanderMissionDefinition.AICommanderCategory.Patrol || category == AICommanderMissionDefinition.AICommanderCategory.Exploration || category == AICommanderMissionDefinition.AICommanderCategory.WarPatrol);
 }
Exemple #5
0
 public int ComputeCommanderMissionNumber(AICommanderMissionDefinition.AICommanderCategory category)
 {
     return(0);
 }