Page 1 of 1

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

Posted: 27 Oct 2009, 21:29
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?

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

Posted: 27 Oct 2009, 21:36
by Tobi
Fire state:
0 = Hold fire
1 = Return fire
2 = Fire at will

Move state:
0 = Hold pos
1 = Maneuver
2 = Roam

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

Posted: 27 Oct 2009, 21:41
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)

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

Posted: 27 Oct 2009, 21:44
by casperjeff
thanks to both of you!!!