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



All times are UTC + 1 hour


Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 27 Oct 2009, 21:29 

Joined: 14 Aug 2008, 20:54
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?


Top
 Offline Profile  
 
PostPosted: 27 Oct 2009, 21:36 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
Fire state:
0 = Hold fire
1 = Return fire
2 = Fire at will

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


Top
 Offline Profile  
 
PostPosted: 27 Oct 2009, 21:41 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
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)


Top
 Offline Profile  
 
PostPosted: 27 Oct 2009, 21:44 

Joined: 14 Aug 2008, 20:54
thanks to both of you!!!


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.