where to find int values of various attributes (java AI)

where to find int values of various attributes (java AI)

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
casperjeff
Posts: 51
Joined: 14 Aug 2008, 21:54

where to find int values of various attributes (java AI)

Post by casperjeff »

Struggling to find values for various things that I can't seem to locate in the java or C++ source header files.

Example is the various fire_states

I know that I can issue a SetFireStateUnitAICommand but I don't know the values to put in for fireState.

I checked the spring engine source files...sepcifically commandAI.cpp and while it handles changes to the fire state, nowhere can I get a list of the integer values I should be using.

Help?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: where to find int values of various attributes (java AI)

Post by Tobi »

Fire state:
0 = Hold fire
1 = Return fire
2 = Fire at will

Move state:
0 = Hold pos
1 = Maneuver
2 = Roam
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: where to find int values of various attributes (java AI)

Post by hoijui »

rts/ExternalAI/Interface/AISCommands.h
in genreal, the files in this folder should be the first place where you should look.
the fire state thing is actually doccuemtned already, and would be in the java file even, IF i had used /// instead of only // :D (fixed it, will commit later)
casperjeff
Posts: 51
Joined: 14 Aug 2008, 21:54

Re: where to find int values of various attributes (java AI)

Post by casperjeff »

thanks to both of you!!!
Post Reply

Return to “AI”