group ai reference

group ai reference

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Bobcatben
Posts: 120
Joined: 10 Mar 2006, 17:01

group ai reference

Post by Bobcatben »

is there any kind of base template or guide or anything that would help someone get started making a group ai? i been looking over the code for them in the svn and i have a general idea of how they work but i have no code to work off that isn't full of stuff for the ai's already made.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

look at the interface files for the callback, the functions are all pretty much self explanatory.

Also the IAICallback interface is used by skirmish AI's not just groupAI's
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Re: group ai reference

Post by colorblind »

Bobcatben wrote:but i have no code to work off that isn't full of stuff for the ai's already made.
You've got a good point there. When I first started at groupAIs I too found it hard to distinguish between the bare functions / variables and stuff specifically for a given AI.
I'll go and see if I can make a bare template for groupAIs.
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Post by colorblind »

Allright, here you go:

http://teake.home.fmf.nl/temp/GroupAITemplate.zip

It's a template for groupAIs. Have fun with it :-)
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Post by Acidd_UK »

What a star! I will probably have a play with this now too, thx colourblind!
Post Reply

Return to “Engine”