Example #1
0
 public void CreateTeam(AITeamType type, Color color, int numInfantry, int numSniper, int numSupport, Vector3 position, bool areBots)
 {
     AITeam team = new AITeam(type, color);
     team.Add(new AIObject(AIRoleType.TeamLeader, position, areBots));
     for (int i = 0; i < numInfantry; i++)
         team.Add(new AIObject(AIRoleType.Infantry, position, areBots));
     for (int i = 0; i < numSniper; i++)
         team.Add(new AIObject(AIRoleType.Sniper, position, areBots));
     for (int i = 0; i < numSupport; i++)
         team.Add(new AIObject(AIRoleType.Support, position, areBots));
     _teams.Add(team);
 }