UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
le_s Struct Reference

a local entity More...

#include <cl_localentity.h>

Public Member Functions

bool isMoving () const
 
ItemgetRightHandItem () const
 
ItemgetLeftHandItem () const
 
ItemgetHandItem (actorHands_t hand) const
 
ItemgetFloorContainer () const
 
void setFloorContainer (Item *il)
 
void setFloor (le_s *other)
 
void resetFloor ()
 
void init ()
 

Data Fields

bool inuse
 
entity_type_t type
 
int entnum
 
vec3_t origin
 
vec3_t oldOrigin
 
pos3_t pos
 
pos3_t oldPos
 
pos3_t newPos
 
int angle
 
int dir
 
int TU
 
int maxTU
 
int morale
 
int maxMorale
 
int HP
 
int maxHP
 
int STUN
 
int state
 
woundInfo_t wounds
 
float angles [3]
 
float alpha
 
int team
 
int pnum
 
int ucn
 
int flags
 
fireDefIndex_t currentSelectedFiremode
 
actorModes_t actorMode
 
pos3_t mousePendPos
 
byte actorMoveLength
 The TUs that the current selected actor needs to walk to the current grid position marked by the mouse cursor (mousePos) More...
 
struct le_sclientAction
 
int contents
 
AABB aabb
 
vec3_t size
 
char inlineModelName [8]
 
unsigned int modelnum1
 
unsigned int modelnum2
 
unsigned int bodySkin
 
unsigned int headSkin
 
model_tmodel1
 
model_tmodel2
 
localEntityThinkFunc_t think
 
int thinkDelay
 
dvec_t dvtab [MAX_ROUTE]
 
int pathContents [MAX_ROUTE]
 
int positionContents
 
int pathLength
 
int pathPos
 
leStep_tstepList
 
int stepIndex
 
int startTime
 
int endTime
 
int speed [MAX_ROUTE]
 
float rotationSpeed
 
int slidingSpeed
 
int sampleIdx
 
float attenuation
 
float volume
 
animState_t as
 
const char * particleID
 
int levelflags
 
ptl_tptl
 
const char * ref1
 
const char * ref2
 
const struct le_sref3
 
Inventory inv
 
int left
 
int right
 
int headgear
 
actorSizeEnum_t fieldSize
 
lighting_t lighting
 
teamDef_tteamDef
 
int gender
 
const fireDef_tfd
 
localEntitiyAddFunc_t addFunc
 

Detailed Description

a local entity

Definition at line 66 of file cl_localentity.h.

Member Function Documentation

Item* le_s::getFloorContainer ( ) const
inline

Definition at line 185 of file cl_localentity.h.

References Inventory::getFloorContainer().

Referenced by GAME_CollectItems(), LE_PlaceItem(), and setFloor().

bool le_s::isMoving ( ) const
inline

Definition at line 139 of file cl_localentity.h.

Referenced by CL_ActorCheckAction(), CL_ActorDoMove(), and HUD_DisplayFiremodes_f().

void le_s::resetFloor ( )
inline
void le_s::setFloor ( le_s other)
inline
void le_s::setFloorContainer ( Item il)
inline

Definition at line 189 of file cl_localentity.h.

References Inventory::setFloorContainer().

Field Documentation

byte le_s::actorMoveLength

The TUs that the current selected actor needs to walk to the current grid position marked by the mouse cursor (mousePos)

See also
CL_MoveLength

Definition at line 104 of file cl_localentity.h.

Referenced by CL_ActorResetMoveLength(), CL_AddTargetingBox(), HUD_UpdateActor(), HUD_UpdateActorMove(), and init().

localEntitiyAddFunc_t le_s::addFunc

is called before adding a le to scene

Definition at line 167 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_AddBrushModel(), CL_AddEdict(), init(), and LE_AddToScene().

float le_s::alpha

alpha color value for rendering

Definition at line 86 of file cl_localentity.h.

Referenced by CL_AddActor(), CL_AddUGV(), init(), and LE_AddToScene().

int le_s::angle

the current dir the le is facing into. Beware, this can either be an index in the bytedirs array or an index for the angles array of the le

Definition at line 73 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_ActorDoTurn(), CL_AddBrushModel(), CL_CameraAppear(), init(), LE_AddGrenade(), LE_AddProjectile(), LE_DoPathMove(), LET_BrushModel(), LET_Projectile(), and UI_RadarNodeDrawActor().

float le_s::attenuation

attenuation value for local entity sounds

Definition at line 146 of file cl_localentity.h.

Referenced by init(), LE_AddAmbientSound(), and S_Frame().

unsigned int le_s::bodySkin

the skin number of the body

Definition at line 115 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_AddUGV(), CL_GetReactionFireHead(), init(), and LE_AddToScene().

struct le_s* le_s::clientAction

entity from server that is currently triggered and wait for client action

Definition at line 106 of file cl_localentity.h.

Referenced by CL_ActorClientAction(), CL_ActorMouseTrace(), CL_ActorResetClientAction(), CL_ActorSelect(), CL_ActorUse(), CL_ActorUse_f(), CL_BattlescapeSearchAtGridPos(), init(), and LE_AddToScene().

int le_s::contents

content flags for this LE - used for tracing

Definition at line 108 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_ActorDie(), CL_AddBrushModel(), CL_ClipMoveToLEs(), CL_HullForEntity(), init(), and LE_AddToScene().

fireDefIndex_t le_s::currentSelectedFiremode
int le_s::dir

Definition at line 76 of file cl_localentity.h.

Referenced by CL_AddBrushModel(), init(), LET_RotateDoor(), and LET_SlideDoor().

dvec_t le_s::dvtab[MAX_ROUTE]

various think function vars

Definition at line 127 of file cl_localentity.h.

Referenced by CL_ActorDoMove(), init(), and LE_DoPathMove().

int le_s::gender
See also
nametypes_t

Definition at line 163 of file cl_localentity.h.

Referenced by CL_ActorAdd(), CL_ActorAppear(), CL_ActorPlaySound(), and init().

int le_s::headgear

item indices that the actor holds in his hands

Definition at line 157 of file cl_localentity.h.

Referenced by CL_InvAdd(), CL_InvDel(), and init().

unsigned int le_s::headSkin

the skin number of the head

Definition at line 116 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_AddActor(), CL_GetReactionFireHead(), HUD_UpdateActorStats(), and init().

int le_s::HP
char le_s::inlineModelName[8]
int le_s::levelflags

the levels this local entity should be visible at

Definition at line 152 of file cl_localentity.h.

Referenced by CL_AddBrushModel(), CL_CameraAppear(), CL_ParticleAppear(), init(), LE_AddAmbientSound(), LE_AddToScene(), and LE_BrushModelAction().

lighting_t le_s::lighting

Definition at line 160 of file cl_localentity.h.

Referenced by init(), and LE_AddToScene().

int le_s::maxMorale

morale value - used for soldier panic and the like

Definition at line 79 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_ActorStats(), HUD_UpdateActorCvar(), HUD_UpdateActorStats(), and init().

int le_s::maxTU

time units

Definition at line 78 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_ActorStats(), HUD_UpdateActorCvar(), HUD_UpdateActorStats(), and init().

model_t * le_s::model2

pointers to the cl.model_draw array that holds the models for body and head - model1 is body, model2 is head

Definition at line 117 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_AddActor(), CL_AddUGV(), CL_GetReactionFireHead(), CL_ViewLoadMedia(), HUD_UpdateActorStats(), and init().

unsigned int le_s::modelnum1

the number of the body model in the cl.model_draw array

Definition at line 113 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_AddBrushModel(), CL_Explode(), CL_ViewLoadMedia(), init(), and LE_GetClipModel().

unsigned int le_s::modelnum2

the number of the head model in the cl.model_draw array

Definition at line 114 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_ViewLoadMedia(), and init().

int le_s::morale
pos3_t le_s::mousePendPos

for double-click movement and confirmations ...

Definition at line 98 of file cl_localentity.h.

Referenced by CL_ActorConfirmAction(), CL_ActorMoveMouse(), CL_ActorSelectMouse(), CL_AddTargeting(), CL_GetHitProbability(), and init().

pos3_t le_s::newPos

position on the grid

Definition at line 72 of file cl_localentity.h.

Referenced by CL_ActorDoMove(), init(), LE_DoEndPathMove(), and LET_HiddenMove().

vec3_t le_s::oldOrigin

position given via world coordinates

Definition at line 71 of file cl_localentity.h.

Referenced by CL_AddBrushModel(), and init().

pos3_t le_s::oldPos

Definition at line 72 of file cl_localentity.h.

Referenced by init(), LE_DoPathMove(), and LET_PathMove().

const char* le_s::particleID

Definition at line 151 of file cl_localentity.h.

Referenced by CL_ParticleAppear(), and init().

int le_s::pathContents[MAX_ROUTE]

content flags of the brushes the actor is walking in

Definition at line 128 of file cl_localentity.h.

Referenced by CL_ActorDoMove(), init(), LE_DoPathMove(), and LE_PlayFootStepSound().

int le_s::pathLength

Definition at line 130 of file cl_localentity.h.

Referenced by CL_ActorDoMove(), init(), LE_DoEndPathMove(), LET_PathMove(), and LET_StartIdle().

int le_s::positionContents

content flags for the current brush the actor is standing in

Definition at line 129 of file cl_localentity.h.

Referenced by init(), LE_DoPathMove(), and LE_PlaySoundFileForContents().

ptl_t* le_s::ptl
const char* le_s::ref1

Definition at line 154 of file cl_localentity.h.

Referenced by init(), LE_AddGrenade(), LE_AddProjectile(), and LET_Projectile().

const char * le_s::ref2

Definition at line 154 of file cl_localentity.h.

Referenced by init(), LE_AddGrenade(), LE_AddProjectile(), and LET_Projectile().

const struct le_s* le_s::ref3

Definition at line 155 of file cl_localentity.h.

Referenced by init(), LE_AddGrenade(), LE_AddProjectile(), and LET_Projectile().

float le_s::rotationSpeed
int le_s::sampleIdx

sound effects

Definition at line 145 of file cl_localentity.h.

Referenced by init(), LE_AddAmbientSound(), and S_Frame().

vec3_t le_s::size

Definition at line 110 of file cl_localentity.h.

Referenced by CL_AddBrushModel(), and LET_SlideDoor().

int le_s::slidingSpeed
int le_s::speed[MAX_ROUTE]

the speed the le is moving with

Definition at line 135 of file cl_localentity.h.

Referenced by CL_ActorDoMove(), init(), and LE_DoPathMove().

int le_s::startTime

Definition at line 134 of file cl_localentity.h.

Referenced by CL_ActorDoMove(), init(), LE_DoPathMove(), and LET_PathMove().

int le_s::stepIndex

marks the current step in the stepList that should be used to get the event time for following step based events

Definition at line 132 of file cl_localentity.h.

Referenced by CL_ActorDoMoveTime(), CL_GetStepTime(), CL_NotifyBattlescapeEventDelay(), init(), and LET_StartIdle().

leStep_t* le_s::stepList

list of steps - each new step is appended to this list (fifo)

Definition at line 131 of file cl_localentity.h.

Referenced by CL_ActorDoMoveTime(), CL_GetStepTime(), CL_NotifyBattlescapeEventDelay(), init(), and LET_StartIdle().

int le_s::STUN

if stunned - state STATE_STUN

Definition at line 81 of file cl_localentity.h.

Referenced by CL_ActorStats(), HUD_UpdateActorCvar(), HUD_UpdateActorStats(), and init().

is called every frame

Definition at line 122 of file cl_localentity.h.

Referenced by CL_DoorClose(), CL_DoorOpen(), init(), LE_ExecuteThink(), and LE_SetThink().

int le_s::thinkDelay

number of milliseconds to skip the think function for

Definition at line 124 of file cl_localentity.h.

Referenced by init(), LET_BrushModel(), and LET_SlideDoor().

int le_s::ucn

the unique character number to match between server and client characters

Definition at line 90 of file cl_localentity.h.

Referenced by CL_ActorAppear(), CL_ActorGetChr(), CL_ActorGetFromCharacter(), and init().

float le_s::volume

loop sound volume - 0.0f-1.0f

Definition at line 147 of file cl_localentity.h.

Referenced by init(), LE_AddAmbientSound(), and S_Frame().

woundInfo_t le_s::wounds

Definition at line 83 of file cl_localentity.h.

Referenced by CL_ActorInjuryModifier(), CL_ActorWound(), HUD_ActorWoundData_f(), and init().


The documentation for this struct was generated from the following files: