doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | List of all members
idEntity Class Reference

#include <Entity.h>

Inheritance diagram for idEntity:
idClass idActivator idAnimatedEntity idBeam idBrittleFracture idCamera idCombatNode idCursor3D idDamagable idDebris idEarthQuake idEntityFx idExplodable idForceField idFuncAASObstacle idFuncAASPortal idFuncPortal idFuncRadioChatter idFuncSmoke idItem idItemRemover idLight idLiquid idLocationEntity idLocationSeparatorEntity idMoveable idMover idMover_Binary idMover_Periodic idMultiModelAF idPathCorner idPhantomObjects idPlayerStart idProjectile idSecurityCamera idShaking idSound idSpawnableEntity idSplinePath idSpring idStaticEntity idTarget idTarget_EndLevel idTextEntity idTrigger idVacuumEntity idVacuumSeparatorEntity idWorldspawn

Classes

struct  entityFlags_s
 

Public Types

enum  { EVENT_STARTSOUNDSHADER, EVENT_STOPSOUNDSHADER, EVENT_MAXEVENTS }
 

Public Member Functions

 ABSTRACT_PROTOTYPE (idEntity)
 
 idEntity ()
 
 ~idEntity ()
 
void Spawn (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
const char * GetEntityDefName (void) const
 
void SetName (const char *name)
 
const char * GetName (void) const
 
virtual void UpdateChangeableSpawnArgs (const idDict *source)
 
virtual renderView_tGetRenderView ()
 
virtual void Think (void)
 
bool CheckDormant (void)
 
virtual void DormantBegin (void)
 
virtual void DormantEnd (void)
 
bool IsActive (void) const
 
void BecomeActive (int flags)
 
void BecomeInactive (int flags)
 
void UpdatePVSAreas (const idVec3 &pos)
 
virtual void Present (void)
 
virtual renderEntity_tGetRenderEntity (void)
 
virtual int GetModelDefHandle (void)
 
virtual void SetModel (const char *modelname)
 
void SetSkin (const idDeclSkin *skin)
 
const idDeclSkinGetSkin (void) const
 
void SetShaderParm (int parmnum, float value)
 
virtual void SetColor (float red, float green, float blue)
 
virtual void SetColor (const idVec3 &color)
 
virtual void GetColor (idVec3 &out) const
 
virtual void SetColor (const idVec4 &color)
 
virtual void GetColor (idVec4 &out) const
 
virtual void FreeModelDef (void)
 
virtual void FreeLightDef (void)
 
virtual void Hide (void)
 
virtual void Show (void)
 
bool IsHidden (void) const
 
void UpdateVisuals (void)
 
void UpdateModel (void)
 
void UpdateModelTransform (void)
 
virtual void ProjectOverlay (const idVec3 &origin, const idVec3 &dir, float size, const char *material)
 
int GetNumPVSAreas (void)
 
const intGetPVSAreas (void)
 
void ClearPVSAreas (void)
 
bool PhysicsTeamInPVS (pvsHandle_t pvsHandle)
 
virtual bool UpdateAnimationControllers (void)
 
bool UpdateRenderEntity (renderEntity_s *renderEntity, const renderView_t *renderView)
 
virtual idAnimatorGetAnimator (void)
 
virtual bool CanPlayChatterSounds (void) const
 
bool StartSound (const char *soundName, const s_channelType channel, int soundShaderFlags, bool broadcast, int *length)
 
bool StartSoundShader (const idSoundShader *shader, const s_channelType channel, int soundShaderFlags, bool broadcast, int *length)
 
void StopSound (const s_channelType channel, bool broadcast)
 
void SetSoundVolume (float volume)
 
void UpdateSound (void)
 
int GetListenerId (void) const
 
idSoundEmitterGetSoundEmitter (void) const
 
void FreeSoundEmitter (bool immediate)
 
virtual void PreBind (void)
 
virtual void PostBind (void)
 
virtual void PreUnbind (void)
 
virtual void PostUnbind (void)
 
void JoinTeam (idEntity *teammember)
 
void Bind (idEntity *master, bool orientated)
 
void BindToJoint (idEntity *master, const char *jointname, bool orientated)
 
void BindToJoint (idEntity *master, jointHandle_t jointnum, bool orientated)
 
void BindToBody (idEntity *master, int bodyId, bool orientated)
 
void Unbind (void)
 
bool IsBound (void) const
 
bool IsBoundTo (idEntity *master) const
 
idEntityGetBindMaster (void) const
 
jointHandle_t GetBindJoint (void) const
 
int GetBindBody (void) const
 
idEntityGetTeamMaster (void) const
 
idEntityGetNextTeamEntity (void) const
 
void ConvertLocalToWorldTransform (idVec3 &offset, idMat3 &axis)
 
idVec3 GetLocalVector (const idVec3 &vec) const
 
idVec3 GetLocalCoordinates (const idVec3 &vec) const
 
idVec3 GetWorldVector (const idVec3 &vec) const
 
idVec3 GetWorldCoordinates (const idVec3 &vec) const
 
bool GetMasterPosition (idVec3 &masterOrigin, idMat3 &masterAxis) const
 
void GetWorldVelocities (idVec3 &linearVelocity, idVec3 &angularVelocity) const
 
void SetPhysics (idPhysics *phys)
 
idPhysicsGetPhysics (void) const
 
void RestorePhysics (idPhysics *phys)
 
bool RunPhysics (void)
 
void SetOrigin (const idVec3 &org)
 
void SetAxis (const idMat3 &axis)
 
void SetAngles (const idAngles &ang)
 
bool GetFloorPos (float max_dist, idVec3 &floorpos) const
 
virtual bool GetPhysicsToVisualTransform (idVec3 &origin, idMat3 &axis)
 
virtual bool GetPhysicsToSoundTransform (idVec3 &origin, idMat3 &axis)
 
virtual bool Collide (const trace_t &collision, const idVec3 &velocity)
 
virtual void GetImpactInfo (idEntity *ent, int id, const idVec3 &point, impactInfo_t *info)
 
virtual void ApplyImpulse (idEntity *ent, int id, const idVec3 &point, const idVec3 &impulse)
 
virtual void AddForce (idEntity *ent, int id, const idVec3 &point, const idVec3 &force)
 
virtual void ActivatePhysics (idEntity *ent)
 
virtual bool IsAtRest (void) const
 
virtual int GetRestStartTime (void) const
 
virtual void AddContactEntity (idEntity *ent)
 
virtual void RemoveContactEntity (idEntity *ent)
 
virtual bool CanDamage (const idVec3 &origin, idVec3 &damagePoint) const
 
virtual void Damage (idEntity *inflictor, idEntity *attacker, const idVec3 &dir, const char *damageDefName, const float damageScale, const int location)
 
virtual void AddDamageEffect (const trace_t &collision, const idVec3 &velocity, const char *damageDefName)
 
virtual void DamageFeedback (idEntity *victim, idEntity *inflictor, int &damage)
 
virtual bool Pain (idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location)
 
virtual void Killed (idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location)
 
virtual bool ShouldConstructScriptObjectAtSpawn (void) const
 
virtual idThreadConstructScriptObject (void)
 
virtual void DeconstructScriptObject (void)
 
void SetSignal (signalNum_t signalnum, idThread *thread, const function_t *function)
 
void ClearSignal (idThread *thread, signalNum_t signalnum)
 
void ClearSignalThread (signalNum_t signalnum, idThread *thread)
 
bool HasSignal (signalNum_t signalnum) const
 
void Signal (signalNum_t signalnum)
 
void SignalEvent (idThread *thread, signalNum_t signalnum)
 
void TriggerGuis (void)
 
bool HandleGuiCommands (idEntity *entityGui, const char *cmds)
 
virtual bool HandleSingleGuiCommand (idEntity *entityGui, idLexer *src)
 
void FindTargets (void)
 
void RemoveNullTargets (void)
 
void ActivateTargets (idEntity *activator) const
 
virtual void Teleport (const idVec3 &origin, const idAngles &angles, idEntity *destination)
 
bool TouchTriggers (void) const
 
idCurve_Spline< idVec3 > * GetSpline (void) const
 
virtual void ShowEditingDialog (void)
 
virtual void ClientPredictionThink (void)
 
virtual void WriteToSnapshot (idBitMsgDelta &msg) const
 
virtual void ReadFromSnapshot (const idBitMsgDelta &msg)
 
virtual bool ServerReceiveEvent (int event, int time, const idBitMsg &msg)
 
virtual bool ClientReceiveEvent (int event, int time, const idBitMsg &msg)
 
void WriteBindToSnapshot (idBitMsgDelta &msg) const
 
void ReadBindFromSnapshot (const idBitMsgDelta &msg)
 
void WriteColorToSnapshot (idBitMsgDelta &msg) const
 
void ReadColorFromSnapshot (const idBitMsgDelta &msg)
 
void WriteGUIToSnapshot (idBitMsgDelta &msg) const
 
void ReadGUIFromSnapshot (const idBitMsgDelta &msg)
 
void ServerSendEvent (int eventId, const idBitMsg *msg, bool saveEvent, int excludeClient) const
 
void ClientSendEvent (int eventId, const idBitMsg *msg) const
 
- Public Member Functions inherited from idClass
 ABSTRACT_PROTOTYPE (idClass)
 
voidoperator new (size_t)
 
voidoperator new (size_t s, int, int, char *, int)
 
void operator delete (void *)
 
void operator delete (void *, int, int, char *, int)
 
virtual ~idClass ()
 
void Spawn (void)
 
void CallSpawn (void)
 
bool IsType (const idTypeInfo &c) const
 
const char * GetClassname (void) const
 
const char * GetSuperclass (void) const
 
void FindUninitializedMemory (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
bool RespondsTo (const idEventDef &ev) const
 
bool PostEventMS (const idEventDef *ev, int time)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool PostEventSec (const idEventDef *ev, float time)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEvent (const idEventDef *ev)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEventArgPtr (const idEventDef *ev, int *data)
 
void CancelEvents (const idEventDef *ev)
 
void Event_Remove (void)
 

Static Public Member Functions

static bool ModelCallback (renderEntity_s *renderEntity, const renderView_t *renderView)
 
- Static Public Member Functions inherited from idClass
static void Init (void)
 
static void Shutdown (void)
 
static idTypeInfoGetClass (const char *name)
 
static void DisplayInfo_f (const idCmdArgs &args)
 
static void ListClasses_f (const idCmdArgs &args)
 
static idClassCreateInstance (const char *name)
 
static int GetNumTypes (void)
 
static int GetTypeNumBits (void)
 
static idTypeInfoGetType (int num)
 

Public Attributes

int entityNumber
 
int entityDefNumber
 
idLinkList< idEntityspawnNode
 
idLinkList< idEntityactiveNode
 
idLinkList< idEntitysnapshotNode
 
int snapshotSequence
 
int snapshotBits
 
idStr name
 
idDict spawnArgs
 
idScriptObject scriptObject
 
int thinkFlags
 
int dormantStart
 
bool cinematic
 
renderView_trenderView
 
idEntitycameraTarget
 
idList< idEntityPtr< idEntity > > targets
 
int health
 
struct idEntity::entityFlags_s fl
 

Static Public Attributes

static const int MAX_PVS_AREAS = 4
 

Protected Attributes

renderEntity_t renderEntity
 
int modelDefHandle
 
refSound_t refSound
 

Private Member Functions

void FixupLocalizedStrings ()
 
bool DoDormantTests (void)
 
void InitDefaultPhysics (const idVec3 &origin, const idMat3 &axis)
 
void UpdateFromPhysics (bool moveBack)
 
bool InitBind (idEntity *master)
 
void FinishBind (void)
 
void RemoveBinds (void)
 
void QuitTeam (void)
 
void UpdatePVSAreas (void)
 
void Event_GetName (void)
 
void Event_SetName (const char *name)
 
void Event_FindTargets (void)
 
void Event_ActivateTargets (idEntity *activator)
 
void Event_NumTargets (void)
 
void Event_GetTarget (float index)
 
void Event_RandomTarget (const char *ignore)
 
void Event_Bind (idEntity *master)
 
void Event_BindPosition (idEntity *master)
 
void Event_BindToJoint (idEntity *master, const char *jointname, float orientated)
 
void Event_Unbind (void)
 
void Event_RemoveBinds (void)
 
void Event_SpawnBind (void)
 
void Event_SetOwner (idEntity *owner)
 
void Event_SetModel (const char *modelname)
 
void Event_SetSkin (const char *skinname)
 
void Event_GetShaderParm (int parmnum)
 
void Event_SetShaderParm (int parmnum, float value)
 
void Event_SetShaderParms (float parm0, float parm1, float parm2, float parm3)
 
void Event_SetColor (float red, float green, float blue)
 
void Event_GetColor (void)
 
void Event_IsHidden (void)
 
void Event_Hide (void)
 
void Event_Show (void)
 
void Event_CacheSoundShader (const char *soundName)
 
void Event_StartSoundShader (const char *soundName, int channel)
 
void Event_StopSound (int channel, int netSync)
 
void Event_StartSound (const char *soundName, int channel, int netSync)
 
void Event_FadeSound (int channel, float to, float over)
 
void Event_GetWorldOrigin (void)
 
void Event_SetWorldOrigin (idVec3 const &org)
 
void Event_GetOrigin (void)
 
void Event_SetOrigin (const idVec3 &org)
 
void Event_GetAngles (void)
 
void Event_SetAngles (const idAngles &ang)
 
void Event_SetLinearVelocity (const idVec3 &velocity)
 
void Event_GetLinearVelocity (void)
 
void Event_SetAngularVelocity (const idVec3 &velocity)
 
void Event_GetAngularVelocity (void)
 
void Event_SetSize (const idVec3 &mins, const idVec3 &maxs)
 
void Event_GetSize (void)
 
void Event_GetMins (void)
 
void Event_GetMaxs (void)
 
void Event_Touches (idEntity *ent)
 
void Event_SetGuiParm (const char *key, const char *val)
 
void Event_SetGuiFloat (const char *key, float f)
 
void Event_GetNextKey (const char *prefix, const char *lastMatch)
 
void Event_SetKey (const char *key, const char *value)
 
void Event_GetKey (const char *key)
 
void Event_GetIntKey (const char *key)
 
void Event_GetFloatKey (const char *key)
 
void Event_GetVectorKey (const char *key)
 
void Event_GetEntityKey (const char *key)
 
void Event_RestorePosition (void)
 
void Event_UpdateCameraTarget (void)
 
void Event_DistanceTo (idEntity *ent)
 
void Event_DistanceToPoint (const idVec3 &point)
 
void Event_StartFx (const char *fx)
 
void Event_WaitFrame (void)
 
void Event_Wait (float time)
 
void Event_HasFunction (const char *name)
 
void Event_CallFunction (const char *name)
 
void Event_SetNeverDormant (int enable)
 

Private Attributes

idPhysics_Static defaultPhysicsObj
 
idPhysicsphysics
 
idEntitybindMaster
 
jointHandle_t bindJoint
 
int bindBody
 
idEntityteamMaster
 
idEntityteamChain
 
int numPVSAreas
 
int PVSAreas [MAX_PVS_AREAS]
 
signalList_tsignals
 
int mpGUIState
 

Detailed Description

Definition at line 107 of file Entity.h.

Member Enumeration Documentation

anonymous enum
Enumerator
EVENT_STARTSOUNDSHADER 
EVENT_STOPSOUNDSHADER 
EVENT_MAXEVENTS 

Definition at line 348 of file Entity.h.

Constructor & Destructor Documentation

idEntity::idEntity ( )

Definition at line 401 of file Entity.cpp.

idEntity::~idEntity ( void  )

Definition at line 608 of file Entity.cpp.

Member Function Documentation

idEntity::ABSTRACT_PROTOTYPE ( idEntity  )
void idEntity::ActivatePhysics ( idEntity ent)
virtual

Definition at line 2905 of file Entity.cpp.

void idEntity::ActivateTargets ( idEntity activator) const

Definition at line 3650 of file Entity.cpp.

void idEntity::AddContactEntity ( idEntity ent)
virtual

Definition at line 2932 of file Entity.cpp.

void idEntity::AddDamageEffect ( const trace_t collision,
const idVec3 velocity,
const char *  damageDefName 
)
virtual

Reimplemented in idAnimatedEntity, idAFAttachment, and idBrittleFracture.

Definition at line 3108 of file Entity.cpp.

void idEntity::AddForce ( idEntity ent,
int  id,
const idVec3 point,
const idVec3 force 
)
virtual

Reimplemented in idAFEntity_Base, idAFAttachment, and idBrittleFracture.

Definition at line 2896 of file Entity.cpp.

void idEntity::ApplyImpulse ( idEntity ent,
int  id,
const idVec3 point,
const idVec3 impulse 
)
virtual

Reimplemented in idAI, idAFEntity_Base, idAFAttachment, and idBrittleFracture.

Definition at line 2887 of file Entity.cpp.

void idEntity::BecomeActive ( int  flags)

Definition at line 995 of file Entity.cpp.

void idEntity::BecomeInactive ( int  flags)

Definition at line 1025 of file Entity.cpp.

void idEntity::Bind ( idEntity master,
bool  orientated 
)

Definition at line 1896 of file Entity.cpp.

void idEntity::BindToBody ( idEntity master,
int  bodyId,
bool  orientated 
)

Definition at line 1984 of file Entity.cpp.

void idEntity::BindToJoint ( idEntity master,
const char *  jointname,
bool  orientated 
)

Definition at line 1921 of file Entity.cpp.

void idEntity::BindToJoint ( idEntity master,
jointHandle_t  jointnum,
bool  orientated 
)

Definition at line 1959 of file Entity.cpp.

bool idEntity::CanDamage ( const idVec3 origin,
idVec3 damagePoint 
) const
virtual

Definition at line 2961 of file Entity.cpp.

bool idEntity::CanPlayChatterSounds ( void  ) const
virtual

Reimplemented in idAI.

Definition at line 1613 of file Entity.cpp.

bool idEntity::CheckDormant ( void  )

Definition at line 946 of file Entity.cpp.

void idEntity::ClearPVSAreas ( void  )

Definition at line 1387 of file Entity.cpp.

void idEntity::ClearSignal ( idThread thread,
signalNum_t  signalnum 
)

Definition at line 3303 of file Entity.cpp.

void idEntity::ClearSignalThread ( signalNum_t  signalnum,
idThread thread 
)

Definition at line 3321 of file Entity.cpp.

void idEntity::ClientPredictionThink ( void  )
virtual
bool idEntity::ClientReceiveEvent ( int  event,
int  time,
const idBitMsg msg 
)
virtual
void idEntity::ClientSendEvent ( int  eventId,
const idBitMsg msg 
) const

Definition at line 4939 of file Entity.cpp.

bool idEntity::Collide ( const trace_t collision,
const idVec3 velocity 
)
virtual

Reimplemented in idPlayer, idDebris, idAFEntity_Base, idProjectile, and idMoveable.

Definition at line 2868 of file Entity.cpp.

idThread * idEntity::ConstructScriptObject ( void  )
virtual

Reimplemented in idActor, and idWeapon.

Definition at line 3193 of file Entity.cpp.

void idEntity::ConvertLocalToWorldTransform ( idVec3 offset,
idMat3 axis 
)

Definition at line 2198 of file Entity.cpp.

void idEntity::Damage ( idEntity inflictor,
idEntity attacker,
const idVec3 dir,
const char *  damageDefName,
const float  damageScale,
const int  location 
)
virtual

Reimplemented in idPlayer, idAFEntity_Gibbable, idExplodingBarrel, idActor, and idAFAttachment.

Definition at line 3061 of file Entity.cpp.

void idEntity::DamageFeedback ( idEntity victim,
idEntity inflictor,
int damage 
)
virtual

Reimplemented in idAI, and idPlayer.

Definition at line 3040 of file Entity.cpp.

void idEntity::DeconstructScriptObject ( void  )
virtual

Reimplemented in idWeapon.

Definition at line 3227 of file Entity.cpp.

bool idEntity::DoDormantTests ( void  )
private

Definition at line 904 of file Entity.cpp.

void idEntity::DormantBegin ( void  )
virtual

Reimplemented in idAI.

Definition at line 968 of file Entity.cpp.

void idEntity::DormantEnd ( void  )
virtual

Reimplemented in idAI.

Definition at line 978 of file Entity.cpp.

void idEntity::Event_ActivateTargets ( idEntity activator)
private

Definition at line 3844 of file Entity.cpp.

void idEntity::Event_Bind ( idEntity master)
private

Definition at line 3937 of file Entity.cpp.

void idEntity::Event_BindPosition ( idEntity master)
private

Definition at line 3946 of file Entity.cpp.

void idEntity::Event_BindToJoint ( idEntity master,
const char *  jointname,
float  orientated 
)
private

Definition at line 3919 of file Entity.cpp.

void idEntity::Event_CacheSoundShader ( const char *  soundName)
private

Definition at line 4151 of file Entity.cpp.

void idEntity::Event_CallFunction ( const char *  name)
private

Definition at line 4638 of file Entity.cpp.

void idEntity::Event_DistanceTo ( idEntity ent)
private

Definition at line 4559 of file Entity.cpp.

void idEntity::Event_DistanceToPoint ( const idVec3 point)
private

Definition at line 4574 of file Entity.cpp.

void idEntity::Event_FadeSound ( int  channel,
float  to,
float  over 
)
private

Definition at line 4193 of file Entity.cpp.

void idEntity::Event_FindTargets ( void  )
private

Definition at line 3832 of file Entity.cpp.

void idEntity::Event_GetAngles ( void  )
private

Definition at line 4250 of file Entity.cpp.

void idEntity::Event_GetAngularVelocity ( void  )
private

Definition at line 4287 of file Entity.cpp.

void idEntity::Event_GetColor ( void  )
private

Definition at line 4112 of file Entity.cpp.

void idEntity::Event_GetEntityKey ( const char *  key)
private

Definition at line 4468 of file Entity.cpp.

void idEntity::Event_GetFloatKey ( const char *  key)
private

Definition at line 4444 of file Entity.cpp.

void idEntity::Event_GetIntKey ( const char *  key)
private

Definition at line 4430 of file Entity.cpp.

void idEntity::Event_GetKey ( const char *  key)
private

Definition at line 4418 of file Entity.cpp.

void idEntity::Event_GetLinearVelocity ( void  )
private

Definition at line 4269 of file Entity.cpp.

void idEntity::Event_GetMaxs ( void  )
private

Definition at line 4326 of file Entity.cpp.

void idEntity::Event_GetMins ( void  )
private

Definition at line 4317 of file Entity.cpp.

void idEntity::Event_GetName ( void  )
private

Definition at line 3814 of file Entity.cpp.

void idEntity::Event_GetNextKey ( const char *  prefix,
const char *  lastMatch 
)
private

Definition at line 4383 of file Entity.cpp.

void idEntity::Event_GetOrigin ( void  )
private

Definition at line 4232 of file Entity.cpp.

void idEntity::Event_GetShaderParm ( int  parmnum)
private

Definition at line 4067 of file Entity.cpp.

void idEntity::Event_GetSize ( void  )
private

Definition at line 4305 of file Entity.cpp.

void idEntity::Event_GetTarget ( float  index)
private

Definition at line 3862 of file Entity.cpp.

void idEntity::Event_GetVectorKey ( const char *  key)
private

Definition at line 4456 of file Entity.cpp.

void idEntity::Event_GetWorldOrigin ( void  )
private

Definition at line 4204 of file Entity.cpp.

void idEntity::Event_HasFunction ( const char *  name)
private

Definition at line 4622 of file Entity.cpp.

void idEntity::Event_Hide ( void  )
private

Definition at line 4133 of file Entity.cpp.

void idEntity::Event_IsHidden ( void  )
private

Definition at line 4124 of file Entity.cpp.

void idEntity::Event_NumTargets ( void  )
private

Definition at line 3853 of file Entity.cpp.

void idEntity::Event_RandomTarget ( const char *  ignore)
private

Definition at line 3878 of file Entity.cpp.

void idEntity::Event_RemoveBinds ( void  )
private

Definition at line 3928 of file Entity.cpp.

void idEntity::Event_RestorePosition ( void  )
private

Definition at line 4490 of file Entity.cpp.

void idEntity::Event_SetAngles ( const idAngles ang)
private

Definition at line 4241 of file Entity.cpp.

void idEntity::Event_SetAngularVelocity ( const idVec3 velocity)
private

Definition at line 4278 of file Entity.cpp.

void idEntity::Event_SetColor ( float  red,
float  green,
float  blue 
)
private

Definition at line 4103 of file Entity.cpp.

void idEntity::Event_SetGuiFloat ( const char *  key,
float  f 
)
private

Definition at line 4369 of file Entity.cpp.

void idEntity::Event_SetGuiParm ( const char *  key,
const char *  val 
)
private

Definition at line 4352 of file Entity.cpp.

void idEntity::Event_SetKey ( const char *  key,
const char *  value 
)
private

Definition at line 4406 of file Entity.cpp.

void idEntity::Event_SetLinearVelocity ( const idVec3 velocity)
private

Definition at line 4260 of file Entity.cpp.

void idEntity::Event_SetModel ( const char *  modelname)
private

Definition at line 4048 of file Entity.cpp.

void idEntity::Event_SetName ( const char *  name)
private

Definition at line 3823 of file Entity.cpp.

void idEntity::Event_SetNeverDormant ( int  enable)
private

Definition at line 4668 of file Entity.cpp.

void idEntity::Event_SetOrigin ( const idVec3 org)
private

Definition at line 4223 of file Entity.cpp.

void idEntity::Event_SetOwner ( idEntity owner)
private

Definition at line 4035 of file Entity.cpp.

void idEntity::Event_SetShaderParm ( int  parmnum,
float  value 
)
private

Definition at line 4080 of file Entity.cpp.

void idEntity::Event_SetShaderParms ( float  parm0,
float  parm1,
float  parm2,
float  parm3 
)
private

Definition at line 4089 of file Entity.cpp.

void idEntity::Event_SetSize ( const idVec3 mins,
const idVec3 maxs 
)
private

Definition at line 4296 of file Entity.cpp.

void idEntity::Event_SetSkin ( const char *  skinname)
private

Definition at line 4057 of file Entity.cpp.

void idEntity::Event_SetWorldOrigin ( idVec3 const org)
private

Definition at line 4213 of file Entity.cpp.

void idEntity::Event_Show ( void  )
private

Definition at line 4142 of file Entity.cpp.

void idEntity::Event_SpawnBind ( void  )
private

Definition at line 3964 of file Entity.cpp.

void idEntity::Event_StartFx ( const char *  fx)
private

Definition at line 4584 of file Entity.cpp.

void idEntity::Event_StartSound ( const char *  soundName,
int  channel,
int  netSync 
)
private

Definition at line 4181 of file Entity.cpp.

void idEntity::Event_StartSoundShader ( const char *  soundName,
int  channel 
)
private

Definition at line 4160 of file Entity.cpp.

void idEntity::Event_StopSound ( int  channel,
int  netSync 
)
private

Definition at line 4172 of file Entity.cpp.

void idEntity::Event_Touches ( idEntity ent)
private

Definition at line 4335 of file Entity.cpp.

void idEntity::Event_Unbind ( void  )
private

Definition at line 3955 of file Entity.cpp.

void idEntity::Event_UpdateCameraTarget ( void  )
private

Definition at line 4528 of file Entity.cpp.

void idEntity::Event_Wait ( float  time)
private

Definition at line 4607 of file Entity.cpp.

void idEntity::Event_WaitFrame ( void  )
private

Definition at line 4593 of file Entity.cpp.

void idEntity::FindTargets ( void  )

Definition at line 3614 of file Entity.cpp.

void idEntity::FinishBind ( void  )
private

Definition at line 1870 of file Entity.cpp.

void idEntity::FixupLocalizedStrings ( )
private

Definition at line 456 of file Entity.cpp.

void idEntity::FreeLightDef ( void  )
virtual

Reimplemented in idLight, and idProjectile.

Definition at line 1209 of file Entity.cpp.

void idEntity::FreeModelDef ( void  )
virtual

Reimplemented in idAFEntity_Base.

Definition at line 1197 of file Entity.cpp.

void idEntity::FreeSoundEmitter ( bool  immediate)

Definition at line 1787 of file Entity.cpp.

idAnimator * idEntity::GetAnimator ( void  )
virtual

Reimplemented in idAnimatedEntity.

Definition at line 1566 of file Entity.cpp.

int idEntity::GetBindBody ( void  ) const

Definition at line 2171 of file Entity.cpp.

jointHandle_t idEntity::GetBindJoint ( void  ) const

Definition at line 2162 of file Entity.cpp.

idEntity * idEntity::GetBindMaster ( void  ) const

Definition at line 2153 of file Entity.cpp.

void idEntity::GetColor ( idVec3 out) const
virtual

Reimplemented in idLight.

Definition at line 1104 of file Entity.cpp.

void idEntity::GetColor ( idVec4 out) const
virtual

Reimplemented in idLight.

Definition at line 1128 of file Entity.cpp.

const char * idEntity::GetEntityDefName ( void  ) const

Definition at line 842 of file Entity.cpp.

bool idEntity::GetFloorPos ( float  max_dist,
idVec3 floorpos 
) const

Definition at line 2821 of file Entity.cpp.

void idEntity::GetImpactInfo ( idEntity ent,
int  id,
const idVec3 point,
impactInfo_t info 
)
virtual

Reimplemented in idAFEntity_Base, and idAFAttachment.

Definition at line 2878 of file Entity.cpp.

int idEntity::GetListenerId ( void  ) const

Definition at line 1769 of file Entity.cpp.

idVec3 idEntity::GetLocalCoordinates ( const idVec3 vec) const

Definition at line 2240 of file Entity.cpp.

idVec3 idEntity::GetLocalVector ( const idVec3 vec) const

Definition at line 2216 of file Entity.cpp.

bool idEntity::GetMasterPosition ( idVec3 masterOrigin,
idMat3 masterAxis 
) const

Definition at line 2313 of file Entity.cpp.

int idEntity::GetModelDefHandle ( void  )
virtual

Definition at line 1515 of file Entity.cpp.

const char * idEntity::GetName ( void  ) const

Definition at line 875 of file Entity.cpp.

idEntity * idEntity::GetNextTeamEntity ( void  ) const

Definition at line 2189 of file Entity.cpp.

int idEntity::GetNumPVSAreas ( void  )

Definition at line 1363 of file Entity.cpp.

idPhysics * idEntity::GetPhysics ( void  ) const

Definition at line 2607 of file Entity.cpp.

bool idEntity::GetPhysicsToSoundTransform ( idVec3 origin,
idMat3 axis 
)
virtual

Reimplemented in idPlayer, idAnimated, idActor, and idLight.

Definition at line 2853 of file Entity.cpp.

bool idEntity::GetPhysicsToVisualTransform ( idVec3 origin,
idMat3 axis 
)
virtual

Reimplemented in idPlayer, idAFEntity_Base, idActor, and idBarrel.

Definition at line 2844 of file Entity.cpp.

const int * idEntity::GetPVSAreas ( void  )

Definition at line 1375 of file Entity.cpp.

renderEntity_t * idEntity::GetRenderEntity ( void  )
virtual

Definition at line 1506 of file Entity.cpp.

renderView_t * idEntity::GetRenderView ( void  )
virtual

Reimplemented in idPlayer, idActor, idSecurityCamera, and idCamera.

Definition at line 1577 of file Entity.cpp.

int idEntity::GetRestStartTime ( void  ) const
virtual

Definition at line 2923 of file Entity.cpp.

const idDeclSkin * idEntity::GetSkin ( void  ) const

Definition at line 1188 of file Entity.cpp.

idSoundEmitter * idEntity::GetSoundEmitter ( void  ) const

Definition at line 1778 of file Entity.cpp.

idCurve_Spline< idVec3 > * idEntity::GetSpline ( void  ) const

Definition at line 3755 of file Entity.cpp.

idEntity * idEntity::GetTeamMaster ( void  ) const

Definition at line 2180 of file Entity.cpp.

idVec3 idEntity::GetWorldCoordinates ( const idVec3 vec) const

Definition at line 2291 of file Entity.cpp.

idVec3 idEntity::GetWorldVector ( const idVec3 vec) const

Definition at line 2267 of file Entity.cpp.

void idEntity::GetWorldVelocities ( idVec3 linearVelocity,
idVec3 angularVelocity 
) const

Definition at line 2351 of file Entity.cpp.

bool idEntity::HandleGuiCommands ( idEntity entityGui,
const char *  cmds 
)

Definition at line 3428 of file Entity.cpp.

bool idEntity::HandleSingleGuiCommand ( idEntity entityGui,
idLexer src 
)
virtual

Reimplemented in idPlayer, and idElevator.

Definition at line 3595 of file Entity.cpp.

bool idEntity::HasSignal ( signalNum_t  signalnum) const

Definition at line 3253 of file Entity.cpp.

void idEntity::Hide ( void  )
virtual
bool idEntity::InitBind ( idEntity master)
private

Definition at line 1837 of file Entity.cpp.

void idEntity::InitDefaultPhysics ( const idVec3 origin,
const idMat3 axis 
)
private

Definition at line 2501 of file Entity.cpp.

bool idEntity::IsActive ( void  ) const

Definition at line 986 of file Entity.cpp.

bool idEntity::IsAtRest ( void  ) const
virtual

Definition at line 2914 of file Entity.cpp.

bool idEntity::IsBound ( void  ) const

Definition at line 2120 of file Entity.cpp.

bool idEntity::IsBoundTo ( idEntity master) const

Definition at line 2132 of file Entity.cpp.

bool idEntity::IsHidden ( void  ) const

Definition at line 1217 of file Entity.cpp.

void idEntity::JoinTeam ( idEntity teammember)

Definition at line 2377 of file Entity.cpp.

void idEntity::Killed ( idEntity inflictor,
idEntity attacker,
int  damage,
const idVec3 dir,
int  location 
)
virtual
bool idEntity::ModelCallback ( renderEntity_s renderEntity,
const renderView_t renderView 
)
static

Definition at line 1548 of file Entity.cpp.

bool idEntity::Pain ( idEntity inflictor,
idEntity attacker,
int  damage,
const idVec3 dir,
int  location 
)
virtual

Reimplemented in idAI, idActor, and idSecurityCamera.

Definition at line 3151 of file Entity.cpp.

bool idEntity::PhysicsTeamInPVS ( pvsHandle_t  pvsHandle)

Definition at line 1398 of file Entity.cpp.

void idEntity::PostBind ( void  )
virtual

Reimplemented in idPlat, idDoor, and idMover_Binary.

Definition at line 1813 of file Entity.cpp.

void idEntity::PostUnbind ( void  )
virtual

Definition at line 1829 of file Entity.cpp.

void idEntity::PreBind ( void  )
virtual

Reimplemented in idPlat, idDoor, and idMover_Binary.

Definition at line 1805 of file Entity.cpp.

void idEntity::Present ( void  )
virtual
void idEntity::PreUnbind ( void  )
virtual

Definition at line 1821 of file Entity.cpp.

void idEntity::ProjectOverlay ( const idVec3 origin,
const idVec3 dir,
float  size,
const char *  material 
)
virtual

Reimplemented in idAFEntity_WithAttachedHead, and idActor.

Definition at line 1418 of file Entity.cpp.

void idEntity::QuitTeam ( void  )
private

Definition at line 2447 of file Entity.cpp.

void idEntity::ReadBindFromSnapshot ( const idBitMsgDelta msg)

Definition at line 4780 of file Entity.cpp.

void idEntity::ReadColorFromSnapshot ( const idBitMsgDelta msg)

Definition at line 4832 of file Entity.cpp.

void idEntity::ReadFromSnapshot ( const idBitMsgDelta msg)
virtual
void idEntity::ReadGUIFromSnapshot ( const idBitMsgDelta msg)

Definition at line 4861 of file Entity.cpp.

void idEntity::RemoveBinds ( void  )
private

Definition at line 2101 of file Entity.cpp.

void idEntity::RemoveContactEntity ( idEntity ent)
virtual

Definition at line 2941 of file Entity.cpp.

void idEntity::RemoveNullTargets ( void  )

Definition at line 3633 of file Entity.cpp.

void idEntity::Restore ( idRestoreGame savefile)

Definition at line 745 of file Entity.cpp.

void idEntity::RestorePhysics ( idPhysics phys)

Definition at line 2596 of file Entity.cpp.

bool idEntity::RunPhysics ( void  )

Definition at line 2616 of file Entity.cpp.

void idEntity::Save ( idSaveGame savefile) const

Definition at line 667 of file Entity.cpp.

bool idEntity::ServerReceiveEvent ( int  event,
int  time,
const idBitMsg msg 
)
virtual

Reimplemented in idPlayer.

Definition at line 4973 of file Entity.cpp.

void idEntity::ServerSendEvent ( int  eventId,
const idBitMsg msg,
bool  saveEvent,
int  excludeClient 
) const

Definition at line 4897 of file Entity.cpp.

void idEntity::SetAngles ( const idAngles ang)

Definition at line 2812 of file Entity.cpp.

void idEntity::SetAxis ( const idMat3 axis)

Definition at line 2796 of file Entity.cpp.

void idEntity::SetColor ( float  red,
float  green,
float  blue 
)
virtual

Reimplemented in idLight.

Definition at line 1082 of file Entity.cpp.

void idEntity::SetColor ( const idVec3 color)
virtual

Definition at line 1094 of file Entity.cpp.

void idEntity::SetColor ( const idVec4 color)
virtual

Reimplemented in idLight.

Definition at line 1115 of file Entity.cpp.

void idEntity::SetModel ( const char *  modelname)
virtual

Reimplemented in idAnimatedEntity, and idWeapon.

Definition at line 1150 of file Entity.cpp.

void idEntity::SetName ( const char *  name)

Definition at line 854 of file Entity.cpp.

void idEntity::SetOrigin ( const idVec3 org)

Definition at line 2784 of file Entity.cpp.

void idEntity::SetPhysics ( idPhysics phys)

Definition at line 2574 of file Entity.cpp.

void idEntity::SetShaderParm ( int  parmnum,
float  value 
)

Definition at line 1067 of file Entity.cpp.

void idEntity::SetSignal ( signalNum_t  signalnum,
idThread thread,
const function_t function 
)

Definition at line 3266 of file Entity.cpp.

void idEntity::SetSkin ( const idDeclSkin skin)

Definition at line 1178 of file Entity.cpp.

void idEntity::SetSoundVolume ( float  volume)

Definition at line 1740 of file Entity.cpp.

bool idEntity::ShouldConstructScriptObjectAtSpawn ( void  ) const
virtual

Reimplemented in idActor, idWeapon, and idTestModel.

Definition at line 3181 of file Entity.cpp.

void idEntity::Show ( void  )
virtual
void idEntity::ShowEditingDialog ( void  )
virtual

Reimplemented in idStaticEntity, idAFEntity_Base, idLight, and idSound.

Definition at line 3800 of file Entity.cpp.

void idEntity::Signal ( signalNum_t  signalnum)

Definition at line 3352 of file Entity.cpp.

void idEntity::SignalEvent ( idThread thread,
signalNum_t  signalnum 
)

Definition at line 3390 of file Entity.cpp.

void idEntity::Spawn ( void  )

Definition at line 470 of file Entity.cpp.

bool idEntity::StartSound ( const char *  soundName,
const s_channelType  channel,
int  soundShaderFlags,
bool  broadcast,
int length 
)

Definition at line 1622 of file Entity.cpp.

bool idEntity::StartSoundShader ( const idSoundShader shader,
const s_channelType  channel,
int  soundShaderFlags,
bool  broadcast,
int length 
)

Definition at line 1656 of file Entity.cpp.

void idEntity::StopSound ( const s_channelType  channel,
bool  broadcast 
)

Definition at line 1713 of file Entity.cpp.

void idEntity::Teleport ( const idVec3 origin,
const idAngles angles,
idEntity destination 
)
virtual

Reimplemented in idPlayer, and idActor.

Definition at line 3682 of file Entity.cpp.

void idEntity::Think ( void  )
virtual
bool idEntity::TouchTriggers ( void  ) const

Definition at line 3696 of file Entity.cpp.

void idEntity::TriggerGuis ( void  )

Definition at line 3414 of file Entity.cpp.

void idEntity::Unbind ( void  )

Definition at line 2011 of file Entity.cpp.

bool idEntity::UpdateAnimationControllers ( void  )
virtual

Reimplemented in idAI, idActor, and idAFEntity_Base.

Definition at line 1140 of file Entity.cpp.

void idEntity::UpdateChangeableSpawnArgs ( const idDict source)
virtual

Reimplemented in idLight, and idSound.

Definition at line 377 of file Entity.cpp.

void idEntity::UpdateFromPhysics ( bool  moveBack)
private

Definition at line 2759 of file Entity.cpp.

void idEntity::UpdateModel ( void  )

Definition at line 1269 of file Entity.cpp.

void idEntity::UpdateModelTransform ( void  )

Definition at line 1251 of file Entity.cpp.

void idEntity::UpdatePVSAreas ( const idVec3 pos)

Definition at line 1348 of file Entity.cpp.

void idEntity::UpdatePVSAreas ( void  )
private

Definition at line 1320 of file Entity.cpp.

bool idEntity::UpdateRenderEntity ( renderEntity_s renderEntity,
const renderView_t renderView 
)

Definition at line 1524 of file Entity.cpp.

void idEntity::UpdateSound ( void  )

Definition at line 1749 of file Entity.cpp.

void idEntity::UpdateVisuals ( void  )

Definition at line 1310 of file Entity.cpp.

void idEntity::WriteBindToSnapshot ( idBitMsgDelta msg) const

Definition at line 4756 of file Entity.cpp.

void idEntity::WriteColorToSnapshot ( idBitMsgDelta msg) const

Definition at line 4817 of file Entity.cpp.

void idEntity::WriteGUIToSnapshot ( idBitMsgDelta msg) const

Definition at line 4847 of file Entity.cpp.

void idEntity::WriteToSnapshot ( idBitMsgDelta msg) const
virtual

Member Data Documentation

idLinkList<idEntity> idEntity::activeNode

Definition at line 115 of file Entity.h.

int idEntity::bindBody
private

Definition at line 380 of file Entity.h.

jointHandle_t idEntity::bindJoint
private

Definition at line 379 of file Entity.h.

idEntity* idEntity::bindMaster
private

Definition at line 378 of file Entity.h.

idEntity* idEntity::cameraTarget

Definition at line 130 of file Entity.h.

bool idEntity::cinematic

Definition at line 127 of file Entity.h.

idPhysics_Static idEntity::defaultPhysicsObj
private

Definition at line 376 of file Entity.h.

int idEntity::dormantStart

Definition at line 126 of file Entity.h.

int idEntity::entityDefNumber

Definition at line 112 of file Entity.h.

int idEntity::entityNumber

Definition at line 111 of file Entity.h.

struct idEntity::entityFlags_s idEntity::fl
int idEntity::health

Definition at line 134 of file Entity.h.

const int idEntity::MAX_PVS_AREAS = 4
static

Definition at line 109 of file Entity.h.

int idEntity::modelDefHandle
protected

Definition at line 372 of file Entity.h.

int idEntity::mpGUIState
private

Definition at line 389 of file Entity.h.

idStr idEntity::name

Definition at line 121 of file Entity.h.

int idEntity::numPVSAreas
private

Definition at line 384 of file Entity.h.

idPhysics* idEntity::physics
private

Definition at line 377 of file Entity.h.

int idEntity::PVSAreas[MAX_PVS_AREAS]
private

Definition at line 385 of file Entity.h.

refSound_t idEntity::refSound
protected

Definition at line 373 of file Entity.h.

renderEntity_t idEntity::renderEntity
protected

Definition at line 371 of file Entity.h.

renderView_t* idEntity::renderView

Definition at line 129 of file Entity.h.

idScriptObject idEntity::scriptObject

Definition at line 123 of file Entity.h.

signalList_t* idEntity::signals
private

Definition at line 387 of file Entity.h.

int idEntity::snapshotBits

Definition at line 119 of file Entity.h.

idLinkList<idEntity> idEntity::snapshotNode

Definition at line 117 of file Entity.h.

int idEntity::snapshotSequence

Definition at line 118 of file Entity.h.

idDict idEntity::spawnArgs

Definition at line 122 of file Entity.h.

idLinkList<idEntity> idEntity::spawnNode

Definition at line 114 of file Entity.h.

idList< idEntityPtr<idEntity> > idEntity::targets

Definition at line 132 of file Entity.h.

idEntity* idEntity::teamChain
private

Definition at line 382 of file Entity.h.

idEntity* idEntity::teamMaster
private

Definition at line 381 of file Entity.h.

int idEntity::thinkFlags

Definition at line 125 of file Entity.h.


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