UFO: Alien Invasion
Loading...
Searching...
No Matches
AiAction Class Reference
Collaboration diagram for AiAction:
Collaboration graph

Public Member Functions

void reset ()

Data Fields

pos3_t to
pos3_t stop
shoot_types_t shootType
byte shots
Edicttarget
const fireDef_tfd
int z_align

Detailed Description

Definition at line 38 of file g_ai.cpp.

Member Function Documentation

◆ reset()

void AiAction::reset ( )
inline

Field Documentation

◆ fd

const fireDef_t* AiAction::fd

the firemode to use for shooting

Definition at line 45 of file g_ai.cpp.

Referenced by AI_ActorThink(), and AI_FindBestFiredef().

◆ shootType

shoot_types_t AiAction::shootType

the shoot type

Definition at line 42 of file g_ai.cpp.

Referenced by AI_ActorThink(), AI_FighterCalcActionScore(), AI_FindBestFiredef(), and AI_PrepBestAction().

◆ shots

byte AiAction::shots

how many shots can this actor do - only set this if the target is an actor

Definition at line 43 of file g_ai.cpp.

Referenced by AI_ActorThink(), AI_FighterCalcActionScore(), and AI_FindBestFiredef().

◆ stop

pos3_t AiAction::stop

grid pos to end turn at (e.g. hiding spots)

Definition at line 41 of file g_ai.cpp.

Referenced by AI_ActorThink(), AI_CivilianCalcActionScore(), AI_FighterCalcActionScore(), and AI_PanicCalcActionScore().

◆ target

Edict* AiAction::target

the target edict

Definition at line 44 of file g_ai.cpp.

Referenced by AI_ActorThink(), AI_FighterCalcActionScore(), AI_FindBestFiredef(), and AI_PrepBestAction().

◆ to

pos3_t AiAction::to

grid pos to walk to for performing the action

Definition at line 40 of file g_ai.cpp.

Referenced by AI_CivilianCalcActionScore(), AI_FighterCalcActionScore(), AI_PanicCalcActionScore(), and AI_PrepBestAction().

◆ z_align

int AiAction::z_align

the z-align for every shot

Definition at line 46 of file g_ai.cpp.

Referenced by AI_ActorThink(), and AI_FindBestFiredef().


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