Exemplo n.º 1
0
 public MicroManager(AIController ai)
 {
     agents = new List<BaseAgent>();
     squads = new List<Squad>();
     this.ai = ai;
     AssistAgent assistAgent = new AssistAgent(ai, "Assist");
     AttackAgent aA = new AttackAgent(ai, assistAgent, "Atack");
     agents.Add(aA);
     AGENT_ATACK = 0;
     if (!ai.StoryMode)
     {
         AGENT_EXPLORER = 1;
         AGENT_RETREAT = 2;
         AGENT_ASSIST = 3;
         AGENT_STRATEGY = 4;
         agents.Add(new ExplorerAgent(ai, assistAgent, "Explorer"));
     }
     else
     {
         AGENT_RETREAT = 1;
         AGENT_ASSIST = 2;
         AGENT_STRATEGY = 3;
     }
     agents.Add(new RetreatAgent(ai, aA, assistAgent, "Retreat"));
     agents.Add(assistAgent);
     agents.Add(new StrategyAgent(ai, assistAgent, "Strategy"));
     squads.Add(new Squad(ai.race,ai.DifficultyLvl)); //Hero
     squads.Add(new Squad(ai.race, ai.DifficultyLvl));
 }
Exemplo n.º 2
0
        public RetreatAgent(AIController ai, AttackAgent aA, AssistAgent assist, string name) : base(ai, name)
        {
            attackAgent           = aA;
            enemySquadBoundingBox = new Rect();
            ownSquadBoundingBox   = new Rect();

            assistAgent = assist;
        }
Exemplo n.º 3
0
        public RetreatAgent(AIController ai, AttackAgent aA, AssistAgent assist, string name) : base(ai, name)
        {
            attackAgent = aA;
            enemySquadBoundingBox = new Rect();
            ownSquadBoundingBox = new Rect();

            assistAgent = assist;

        }