what i understand:
- a group of units can have an AI, which is called group AI.
- Group AIs are unsynced, like Skirmish AIs
- it works a bit like a skimrish AI, just only for a group of units:
it gets updated every frame, receives events from the engine and can send commands back to the engine. - a computer only handles group AIs of teams controlled by a local instance (therefore they can be/are unsynced)
- only real players can use group AIs? (i think it currently is like this. should it be changed?)
- on each computer, there are GroupHandlers initialized for all teams in a game, so it is possible ot switch the team and use group AIs too there.
- when switching a team, the groups/groupHandlers/groupAIs from the old team are not deleted/released, and the ones on the new team, that already existed before, are not reinitialized?
the main questions:
should Skirmish AIs be able to use Group AIs?
pro:
- good algorithms could be shared by skirmish AIs
- these algorithms could be developped and tested separately, and can also be used by normal players (-> more testing)
- a Skirmish AI that uses Group AIs will only work if the user has the appropriate Group AIs installed.
- the Skirmish AIs do not have total controll over all their units anymore -> may make some things more difficult for them. (eg, units controlled by a group AI blocking the path for a skirmish AI controlled unit.)
what happens with group AIs when switching teams?
a problem i could think of:
for units A, B and C, i create a group AI 1.
i switch to an other team, play there for some time, and then switch back to this team. unit A died, but my instance of the group 1 still references unit A -> problem?
as said.. i am confused, maybe i am seeing problems where they are not. i just wanted to see clear. help me please.