doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Variables
AI.h File Reference

Go to the source code of this file.

Classes

struct  obstaclePath_s
 
struct  predictedPath_s
 
struct  particleEmitter_s
 
class  idMoveState
 
class  idAASFindCover
 
class  idAASFindAreaOutOfRange
 
class  idAASFindAttackPosition
 
class  idAI
 
class  idCombatNode
 

Macros

#define ATTACK_IGNORE   0
 
#define ATTACK_ON_DAMAGE   1
 
#define ATTACK_ON_ACTIVATE   2
 
#define ATTACK_ON_SIGHT   4
 
#define DI_NODIR   -1
 

Typedefs

typedef struct obstaclePath_s obstaclePath_t
 
typedef struct predictedPath_s predictedPath_t
 
typedef struct particleEmitter_s particleEmitter_t
 

Enumerations

enum  moveType_t {
  MOVETYPE_DEAD, MOVETYPE_ANIM, MOVETYPE_SLIDE, MOVETYPE_FLY,
  MOVETYPE_STATIC, NUM_MOVETYPES
}
 
enum  moveCommand_t {
  MOVE_NONE, MOVE_FACE_ENEMY, MOVE_FACE_ENTITY, NUM_NONMOVING_COMMANDS,
  MOVE_TO_ENEMY = NUM_NONMOVING_COMMANDS, MOVE_TO_ENEMYHEIGHT, MOVE_TO_ENTITY, MOVE_OUT_OF_RANGE,
  MOVE_TO_ATTACK_POSITION, MOVE_TO_COVER, MOVE_TO_POSITION, MOVE_TO_POSITION_DIRECT,
  MOVE_SLIDE_TO_POSITION, MOVE_WANDER, NUM_MOVE_COMMANDS
}
 
enum  talkState_t {
  TALK_NEVER, TALK_DEAD, TALK_OK, TALK_BUSY,
  NUM_TALK_STATES
}
 
enum  moveStatus_t {
  MOVE_STATUS_DONE, MOVE_STATUS_MOVING, MOVE_STATUS_WAITING, MOVE_STATUS_DEST_NOT_FOUND,
  MOVE_STATUS_DEST_UNREACHABLE, MOVE_STATUS_BLOCKED_BY_WALL, MOVE_STATUS_BLOCKED_BY_OBJECT, MOVE_STATUS_BLOCKED_BY_ENEMY,
  MOVE_STATUS_BLOCKED_BY_MONSTER
}
 
enum  stopEvent_t {
  SE_BLOCKED = BIT(0), SE_ENTER_LEDGE_AREA = BIT(1), SE_ENTER_OBSTACLE = BIT(2), SE_FALL = BIT(3),
  SE_LAND = BIT(4)
}
 

Variables

const float SQUARE_ROOT_OF_2 = 1.414213562f
 
const float AI_TURN_PREDICTION = 0.2f
 
const float AI_TURN_SCALE = 60.0f
 
const float AI_SEEK_PREDICTION = 0.3f
 
const float AI_FLY_DAMPENING = 0.15f
 
const float AI_HEARING_RANGE = 2048.0f
 
const int DEFAULT_FLY_OFFSET = 68
 
const idEventDef AI_BeginAttack
 
const idEventDef AI_EndAttack
 
const idEventDef AI_MuzzleFlash
 
const idEventDef AI_CreateMissile
 
const idEventDef AI_AttackMissile
 
const idEventDef AI_FireMissileAtTarget
 
const idEventDef AI_AttackMelee
 
const idEventDef AI_DirectDamage
 
const idEventDef AI_JumpFrame
 
const idEventDef AI_EnableClip
 
const idEventDef AI_DisableClip
 
const idEventDef AI_EnableGravity
 
const idEventDef AI_DisableGravity
 
const idEventDef AI_TriggerParticles
 
const idEventDef AI_RandomPath
 

Macro Definition Documentation

#define ATTACK_IGNORE   0

Definition at line 48 of file AI.h.

#define ATTACK_ON_ACTIVATE   2

Definition at line 50 of file AI.h.

#define ATTACK_ON_DAMAGE   1

Definition at line 49 of file AI.h.

#define ATTACK_ON_SIGHT   4

Definition at line 51 of file AI.h.

#define DI_NODIR   -1

Definition at line 108 of file AI.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator
MOVE_NONE 
MOVE_FACE_ENEMY 
MOVE_FACE_ENTITY 
NUM_NONMOVING_COMMANDS 
MOVE_TO_ENEMY 
MOVE_TO_ENEMYHEIGHT 
MOVE_TO_ENTITY 
MOVE_OUT_OF_RANGE 
MOVE_TO_ATTACK_POSITION 
MOVE_TO_COVER 
MOVE_TO_POSITION 
MOVE_TO_POSITION_DIRECT 
MOVE_SLIDE_TO_POSITION 
MOVE_WANDER 
NUM_MOVE_COMMANDS 

Definition at line 63 of file AI.h.

Enumerator
MOVE_STATUS_DONE 
MOVE_STATUS_MOVING 
MOVE_STATUS_WAITING 
MOVE_STATUS_DEST_NOT_FOUND 
MOVE_STATUS_DEST_UNREACHABLE 
MOVE_STATUS_BLOCKED_BY_WALL 
MOVE_STATUS_BLOCKED_BY_OBJECT 
MOVE_STATUS_BLOCKED_BY_ENEMY 
MOVE_STATUS_BLOCKED_BY_MONSTER 

Definition at line 96 of file AI.h.

enum moveType_t
Enumerator
MOVETYPE_DEAD 
MOVETYPE_ANIM 
MOVETYPE_SLIDE 
MOVETYPE_FLY 
MOVETYPE_STATIC 
NUM_MOVETYPES 

Definition at line 54 of file AI.h.

Enumerator
SE_BLOCKED 
SE_ENTER_LEDGE_AREA 
SE_ENTER_OBSTACLE 
SE_FALL 
SE_LAND 

Definition at line 121 of file AI.h.

Enumerator
TALK_NEVER 
TALK_DEAD 
TALK_OK 
TALK_BUSY 
NUM_TALK_STATES 

Definition at line 84 of file AI.h.

Variable Documentation

const idEventDef AI_AttackMelee
const idEventDef AI_AttackMissile
const idEventDef AI_BeginAttack
const idEventDef AI_CreateMissile
const idEventDef AI_DirectDamage
const idEventDef AI_DisableClip
const idEventDef AI_DisableGravity
const idEventDef AI_EnableClip
const idEventDef AI_EnableGravity
const idEventDef AI_EndAttack
const idEventDef AI_FireMissileAtTarget
const float AI_FLY_DAMPENING = 0.15f

Definition at line 44 of file AI.h.

const float AI_HEARING_RANGE = 2048.0f

Definition at line 45 of file AI.h.

const idEventDef AI_JumpFrame
const idEventDef AI_MuzzleFlash
const idEventDef AI_RandomPath
const float AI_SEEK_PREDICTION = 0.3f

Definition at line 43 of file AI.h.

const idEventDef AI_TriggerParticles
const float AI_TURN_PREDICTION = 0.2f

Definition at line 41 of file AI.h.

const float AI_TURN_SCALE = 60.0f

Definition at line 42 of file AI.h.

const int DEFAULT_FLY_OFFSET = 68

Definition at line 46 of file AI.h.

const float SQUARE_ROOT_OF_2 = 1.414213562f

Definition at line 40 of file AI.h.