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

#include <AFEntity.h>

Inheritance diagram for idAFEntity_Base:
idAnimatedEntity idEntity idClass idAFEntity_ClawFourFingers idAFEntity_Gibbable idAFEntity_SteamPipe idAFEntity_Vehicle idActor idAFEntity_Generic idAFEntity_WithAttachedHead idAnimated idAFEntity_VehicleFourWheels idAFEntity_VehicleSimple idAFEntity_VehicleSixWheels idAI idPlayer idAI_Vagary

Public Member Functions

 CLASS_PROTOTYPE (idAFEntity_Base)
 
 idAFEntity_Base (void)
 
virtual ~idAFEntity_Base (void)
 
void Spawn (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
virtual void Think (void)
 
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 bool Collide (const trace_t &collision, const idVec3 &velocity)
 
virtual bool GetPhysicsToVisualTransform (idVec3 &origin, idMat3 &axis)
 
virtual bool UpdateAnimationControllers (void)
 
virtual void FreeModelDef (void)
 
virtual bool LoadAF (void)
 
bool IsActiveAF (void) const
 
const char * GetAFName (void) const
 
idPhysics_AFGetAFPhysics (void)
 
void SetCombatModel (void)
 
idClipModelGetCombatModel (void) const
 
void SetCombatContents (bool enable)
 
virtual void LinkCombat (void)
 
virtual void UnlinkCombat (void)
 
int BodyForClipModelId (int id) const
 
void SaveState (idDict &args) const
 
void LoadState (const idDict &args)
 
void AddBindConstraints (void)
 
void RemoveBindConstraints (void)
 
virtual void ShowEditingDialog (void)
 
- Public Member Functions inherited from idAnimatedEntity
 CLASS_PROTOTYPE (idAnimatedEntity)
 
 idAnimatedEntity ()
 
 ~idAnimatedEntity ()
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
virtual void ClientPredictionThink (void)
 
void UpdateAnimation (void)
 
virtual idAnimatorGetAnimator (void)
 
virtual void SetModel (const char *modelname)
 
bool GetJointWorldTransform (jointHandle_t jointHandle, int currentTime, idVec3 &offset, idMat3 &axis)
 
bool GetJointTransformForAnim (jointHandle_t jointHandle, int animNum, int currentTime, idVec3 &offset, idMat3 &axis) const
 
virtual int GetDefaultSurfaceType (void) const
 
virtual void AddDamageEffect (const trace_t &collision, const idVec3 &velocity, const char *damageDefName)
 
void AddLocalDamageEffect (jointHandle_t jointNum, const idVec3 &localPoint, const idVec3 &localNormal, const idVec3 &localDir, const idDeclEntityDef *def, const idMaterial *collisionMaterial)
 
void UpdateDamageEffects (void)
 
virtual bool ClientReceiveEvent (int event, int time, const idBitMsg &msg)
 
- Public Member Functions inherited from idEntity
 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 ()
 
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)
 
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 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)
 
bool UpdateRenderEntity (renderEntity_s *renderEntity, const renderView_t *renderView)
 
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 GetPhysicsToSoundTransform (idVec3 &origin, idMat3 &axis)
 
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 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 WriteToSnapshot (idBitMsgDelta &msg) const
 
virtual void ReadFromSnapshot (const idBitMsgDelta &msg)
 
virtual bool ServerReceiveEvent (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 void DropAFs (idEntity *ent, const char *type, idList< idEntity * > *list)
 
- Static Public Member Functions inherited from idEntity
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)
 

Protected Member Functions

void Event_SetConstraintPosition (const char *name, const idVec3 &pos)
 

Protected Attributes

idAF af
 
idClipModelcombatModel
 
int combatModelContents
 
idVec3 spawnOrigin
 
idMat3 spawnAxis
 
int nextSoundTime
 
- Protected Attributes inherited from idAnimatedEntity
idAnimator animator
 
damageEffect_tdamageEffects
 
- Protected Attributes inherited from idEntity
renderEntity_t renderEntity
 
int modelDefHandle
 
refSound_t refSound
 

Additional Inherited Members

- Public Types inherited from idAnimatedEntity
enum  { EVENT_ADD_DAMAGE_EFFECT = idEntity::EVENT_MAXEVENTS, EVENT_MAXEVENTS }
 
- Public Types inherited from idEntity
enum  { EVENT_STARTSOUNDSHADER, EVENT_STOPSOUNDSHADER, EVENT_MAXEVENTS }
 
- Public Attributes inherited from idEntity
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 inherited from idEntity
static const int MAX_PVS_AREAS = 4
 

Detailed Description

Definition at line 146 of file AFEntity.h.

Constructor & Destructor Documentation

idAFEntity_Base::idAFEntity_Base ( void  )

Definition at line 530 of file AFEntity.cpp.

idAFEntity_Base::~idAFEntity_Base ( void  )
virtual

Definition at line 543 of file AFEntity.cpp.

Member Function Documentation

void idAFEntity_Base::AddBindConstraints ( void  )

Definition at line 690 of file AFEntity.cpp.

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

Reimplemented from idEntity.

Definition at line 735 of file AFEntity.cpp.

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

Reimplemented from idEntity.

Reimplemented in idAI.

Definition at line 721 of file AFEntity.cpp.

int idAFEntity_Base::BodyForClipModelId ( int  id) const

Definition at line 639 of file AFEntity.cpp.

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

Reimplemented from idEntity.

Reimplemented in idPlayer.

Definition at line 749 of file AFEntity.cpp.

void idAFEntity_Base::DropAFs ( idEntity ent,
const char *  type,
idList< idEntity * > *  list 
)
static

Definition at line 892 of file AFEntity.cpp.

void idAFEntity_Base::Event_SetConstraintPosition ( const char *  name,
const idVec3 pos 
)
protected

Definition at line 933 of file AFEntity.cpp.

void idAFEntity_Base::FreeModelDef ( void  )
virtual

Reimplemented from idEntity.

Definition at line 866 of file AFEntity.cpp.

const char* idAFEntity_Base::GetAFName ( void  ) const
inline

Definition at line 169 of file AFEntity.h.

idPhysics_AF* idAFEntity_Base::GetAFPhysics ( void  )
inline

Definition at line 170 of file AFEntity.h.

idClipModel * idAFEntity_Base::GetCombatModel ( void  ) const

Definition at line 814 of file AFEntity.cpp.

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

Reimplemented from idEntity.

Definition at line 708 of file AFEntity.cpp.

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

Reimplemented from idEntity.

Reimplemented in idPlayer, and idActor.

Definition at line 773 of file AFEntity.cpp.

bool idAFEntity_Base::IsActiveAF ( void  ) const
inline

Definition at line 168 of file AFEntity.h.

void idAFEntity_Base::LinkCombat ( void  )
virtual

Reimplemented in idAFEntity_WithAttachedHead, and idActor.

Definition at line 841 of file AFEntity.cpp.

bool idAFEntity_Base::LoadAF ( void  )
virtual

Reimplemented in idAnimated, and idActor.

Definition at line 594 of file AFEntity.cpp.

void idAFEntity_Base::LoadState ( const idDict args)

Definition at line 681 of file AFEntity.cpp.

void idAFEntity_Base::RemoveBindConstraints ( void  )

Definition at line 699 of file AFEntity.cpp.

void idAFEntity_Base::Restore ( idRestoreGame savefile)

Definition at line 567 of file AFEntity.cpp.

void idAFEntity_Base::Save ( idSaveGame savefile) const

Definition at line 553 of file AFEntity.cpp.

void idAFEntity_Base::SaveState ( idDict args) const

Definition at line 648 of file AFEntity.cpp.

void idAFEntity_Base::SetCombatContents ( bool  enable)

Definition at line 823 of file AFEntity.cpp.

void idAFEntity_Base::SetCombatModel ( void  )

Definition at line 800 of file AFEntity.cpp.

void idAFEntity_Base::ShowEditingDialog ( void  )
virtual

Reimplemented from idEntity.

Definition at line 876 of file AFEntity.cpp.

void idAFEntity_Base::Spawn ( void  )

Definition at line 583 of file AFEntity.cpp.

void idAFEntity_Base::Think ( void  )
virtual
void idAFEntity_Base::UnlinkCombat ( void  )
virtual

Reimplemented in idAFEntity_WithAttachedHead, and idActor.

Definition at line 855 of file AFEntity.cpp.

bool idAFEntity_Base::UpdateAnimationControllers ( void  )
virtual

Reimplemented from idEntity.

Reimplemented in idAI, and idActor.

Definition at line 786 of file AFEntity.cpp.

Member Data Documentation

idAF idAFEntity_Base::af
protected

Definition at line 192 of file AFEntity.h.

idClipModel* idAFEntity_Base::combatModel
protected

Definition at line 193 of file AFEntity.h.

int idAFEntity_Base::combatModelContents
protected

Definition at line 194 of file AFEntity.h.

int idAFEntity_Base::nextSoundTime
protected

Definition at line 197 of file AFEntity.h.

idMat3 idAFEntity_Base::spawnAxis
protected

Definition at line 196 of file AFEntity.h.

idVec3 idAFEntity_Base::spawnOrigin
protected

Definition at line 195 of file AFEntity.h.


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