AI for Games 1.1.1
Loading...
Searching...
No Matches
game2dai.utils.ForceRecorder Class Reference
Inheritance diagram for game2dai.utils.ForceRecorder:

Classes

class  Force
 

Public Member Functions

 ForceRecorder (Vehicle owner)
 
void addData (int type, Vector2D force)
 
boolean hasData ()
 
String toString ()
 

Private Attributes

Vehicle owner = null
 
Force[] forces = null
 
int nbrReadings = 0
 

Static Private Attributes

static String[] forceNames
 
static String spacer = " "
 

Additional Inherited Members

- Public Attributes inherited from game2dai.steering.SBF
int BIT_WALL_AVOID = 0
 
int BIT_OBSTACLE_AVOID = 1
 
int BIT_EVADE = 2
 
int BIT_FLEE = 3
 
int BIT_SEPARATION = 4
 
int BIT_ALIGNMENT = 5
 
int BIT_COHESION = 6
 
int BIT_SEEK = 7
 
int BIT_ARRIVE = 8
 
int BIT_WANDER = 9
 
int BIT_PURSUIT = 10
 
int BIT_OFFSET_PURSUIT = 11
 
int BIT_INTERPOSE = 12
 
int BIT_HIDE = 13
 
int BIT_PATH = 14
 
int BIT_FLOCK = 15
 
int WALL_AVOID = 1 << BIT_WALL_AVOID
 
int OBSTACLE_AVOID = 1 << BIT_OBSTACLE_AVOID
 
int EVADE = 1 << BIT_EVADE
 
int FLEE = 1 << BIT_FLEE
 
int SEPARATION = 1 << BIT_SEPARATION
 
int ALIGNMENT = 1 << BIT_ALIGNMENT
 
int COHESION = 1 << BIT_COHESION
 
int SEEK = 1 << BIT_SEEK
 
int ARRIVE = 1 << BIT_ARRIVE
 
int WANDER = 1 << BIT_WANDER
 
int PURSUIT = 1 << BIT_PURSUIT
 
int OFFSET_PURSUIT = 1 << BIT_OFFSET_PURSUIT
 
int INTERPOSE = 1 << BIT_INTERPOSE
 
int HIDE = 1 << BIT_HIDE
 
int PATH = 1 << BIT_PATH
 
int FLOCK = 1 << BIT_FLOCK
 
int ALL_SB_MASK = 0x0ffffff
 
int WEIGHTED = 1
 
int WEIGHTED_PRIORITIZED = 2
 
double[] DECEL_TWEEK = new double[] {0.0, 0.3, 0.6, 0.9}
 
int FAST = 1
 
int NORMAL = 2
 
int SLOW = 3
 
int AGENT0 = 0
 
int AGENT1 = 1
 
int AGENT_TO_PURSUE = 2
 
int AGENT_TO_EVADE = 3
 
int NBR_AGENT_ARRAY = 4
 
int PASS_THROUGH = 10000
 
int WRAP = 10001
 
int REBOUND = 10002
 

Member Data Documentation

◆ forceNames

String [] game2dai.utils.ForceRecorder.forceNames
staticprivate
Initial value:
= new String[] {
" Wall avoid. ",
" Obstacle avoid ",
" Evade ",
" Flee ",
" Separation ",
" Alignment ",
" Cohesion ",
" Seek ",
" Arrive ",
" Wander ",
" Pursuit ",
" Offset Pursuit ",
" Interpose ",
" Hide ",
" Path ",
" Flock "
}

The documentation for this class was generated from the following file: