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

#include <Physics_Actor.h>

Inheritance diagram for idPhysics_Actor:
idPhysics_Base idPhysics idClass idPhysics_Monster idPhysics_Player

Public Member Functions

 CLASS_PROTOTYPE (idPhysics_Actor)
 
 idPhysics_Actor (void)
 
 ~idPhysics_Actor (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
float GetMasterDeltaYaw (void) const
 
idEntityGetGroundEntity (void) const
 
void SetClipModelAxis (void)
 
void SetClipModel (idClipModel *model, float density, int id=0, bool freeOld=true)
 
idClipModelGetClipModel (int id=0) const
 
int GetNumClipModels (void) const
 
void SetMass (float mass, int id=-1)
 
float GetMass (int id=-1) const
 
void SetContents (int contents, int id=-1)
 
int GetContents (int id=-1) const
 
const idBoundsGetBounds (int id=-1) const
 
const idBoundsGetAbsBounds (int id=-1) const
 
bool IsPushable (void) const
 
const idVec3GetOrigin (int id=0) const
 
const idMat3GetAxis (int id=0) const
 
void SetGravity (const idVec3 &newGravity)
 
const idMat3GetGravityAxis (void) const
 
void ClipTranslation (trace_t &results, const idVec3 &translation, const idClipModel *model) const
 
void ClipRotation (trace_t &results, const idRotation &rotation, const idClipModel *model) const
 
int ClipContents (const idClipModel *model) const
 
void DisableClip (void)
 
void EnableClip (void)
 
void UnlinkClip (void)
 
void LinkClip (void)
 
bool EvaluateContacts (void)
 
- Public Member Functions inherited from idPhysics_Base
 CLASS_PROTOTYPE (idPhysics_Base)
 
 idPhysics_Base (void)
 
 ~idPhysics_Base (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
void SetSelf (idEntity *e)
 
void SetClipModel (idClipModel *model, float density, int id=0, bool freeOld=true)
 
idClipModelGetClipModel (int id=0) const
 
int GetNumClipModels (void) const
 
void SetMass (float mass, int id=-1)
 
float GetMass (int id=-1) const
 
void SetContents (int contents, int id=-1)
 
int GetContents (int id=-1) const
 
void SetClipMask (int mask, int id=-1)
 
int GetClipMask (int id=-1) const
 
const idBoundsGetBounds (int id=-1) const
 
const idBoundsGetAbsBounds (int id=-1) const
 
bool Evaluate (int timeStepMSec, int endTimeMSec)
 
void UpdateTime (int endTimeMSec)
 
int GetTime (void) const
 
void GetImpactInfo (const int id, const idVec3 &point, impactInfo_t *info) const
 
void ApplyImpulse (const int id, const idVec3 &point, const idVec3 &impulse)
 
void AddForce (const int id, const idVec3 &point, const idVec3 &force)
 
void Activate (void)
 
void PutToRest (void)
 
bool IsAtRest (void) const
 
int GetRestStartTime (void) const
 
bool IsPushable (void) const
 
void SaveState (void)
 
void RestoreState (void)
 
void SetOrigin (const idVec3 &newOrigin, int id=-1)
 
void SetAxis (const idMat3 &newAxis, int id=-1)
 
void Translate (const idVec3 &translation, int id=-1)
 
void Rotate (const idRotation &rotation, int id=-1)
 
const idVec3GetOrigin (int id=0) const
 
const idMat3GetAxis (int id=0) const
 
void SetLinearVelocity (const idVec3 &newLinearVelocity, int id=0)
 
void SetAngularVelocity (const idVec3 &newAngularVelocity, int id=0)
 
const idVec3GetLinearVelocity (int id=0) const
 
const idVec3GetAngularVelocity (int id=0) const
 
void SetGravity (const idVec3 &newGravity)
 
const idVec3GetGravity (void) const
 
const idVec3GetGravityNormal (void) const
 
void ClipTranslation (trace_t &results, const idVec3 &translation, const idClipModel *model) const
 
void ClipRotation (trace_t &results, const idRotation &rotation, const idClipModel *model) const
 
int ClipContents (const idClipModel *model) const
 
void DisableClip (void)
 
void EnableClip (void)
 
void UnlinkClip (void)
 
void LinkClip (void)
 
bool EvaluateContacts (void)
 
int GetNumContacts (void) const
 
const contactInfo_tGetContact (int num) const
 
void ClearContacts (void)
 
void AddContactEntity (idEntity *e)
 
void RemoveContactEntity (idEntity *e)
 
bool HasGroundContacts (void) const
 
bool IsGroundEntity (int entityNum) const
 
bool IsGroundClipModel (int entityNum, int id) const
 
void SetPushed (int deltaTime)
 
const idVec3GetPushedLinearVelocity (const int id=0) const
 
const idVec3GetPushedAngularVelocity (const int id=0) const
 
void SetMaster (idEntity *master, const bool orientated=true)
 
const trace_tGetBlockingInfo (void) const
 
idEntityGetBlockingEntity (void) const
 
int GetLinearEndTime (void) const
 
int GetAngularEndTime (void) const
 
void WriteToSnapshot (idBitMsgDelta &msg) const
 
void ReadFromSnapshot (const idBitMsgDelta &msg)
 
- Public Member Functions inherited from idPhysics
 ABSTRACT_PROTOTYPE (idPhysics)
 
virtual ~idPhysics (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
virtual void SetClipBox (const idBounds &bounds, float density)
 
- 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)
 

Protected Attributes

idClipModelclipModel
 
idMat3 clipModelAxis
 
float mass
 
float invMass
 
idEntitymasterEntity
 
float masterYaw
 
float masterDeltaYaw
 
idEntityPtr< idEntitygroundEntityPtr
 
- Protected Attributes inherited from idPhysics_Base
idEntityself
 
int clipMask
 
idVec3 gravityVector
 
idVec3 gravityNormal
 
idList< contactInfo_tcontacts
 
idList< contactEntity_tcontactEntities
 

Additional Inherited Members

- Static Public Member Functions inherited from idPhysics
static int SnapTimeToPhysicsFrame (int t)
 
- 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 inherited from idPhysics_Base
void AddGroundContacts (const idClipModel *clipModel)
 
void AddContactEntitiesForContacts (void)
 
void ActivateContactEntities (void)
 
bool IsOutsideWorld (void) const
 
void DrawVelocity (int id, float linearScale, float angularScale) const
 

Detailed Description

Definition at line 44 of file Physics_Actor.h.

Constructor & Destructor Documentation

END_CLASS idPhysics_Actor::idPhysics_Actor ( void  )

Definition at line 42 of file Physics_Actor.cpp.

idPhysics_Actor::~idPhysics_Actor ( void  )

Definition at line 58 of file Physics_Actor.cpp.

Member Function Documentation

idPhysics_Actor::CLASS_PROTOTYPE ( idPhysics_Actor  )
int idPhysics_Actor::ClipContents ( const idClipModel model) const
virtual

Implements idPhysics.

Definition at line 323 of file Physics_Actor.cpp.

void idPhysics_Actor::ClipRotation ( trace_t results,
const idRotation rotation,
const idClipModel model 
) const
virtual

Implements idPhysics.

Definition at line 306 of file Physics_Actor.cpp.

void idPhysics_Actor::ClipTranslation ( trace_t results,
const idVec3 translation,
const idClipModel model 
) const
virtual

Implements idPhysics.

Definition at line 289 of file Physics_Actor.cpp.

void idPhysics_Actor::DisableClip ( void  )
virtual

Implements idPhysics.

Definition at line 338 of file Physics_Actor.cpp.

void idPhysics_Actor::EnableClip ( void  )
virtual

Implements idPhysics.

Definition at line 347 of file Physics_Actor.cpp.

bool idPhysics_Actor::EvaluateContacts ( void  )
virtual

Implements idPhysics.

Definition at line 374 of file Physics_Actor.cpp.

const idBounds & idPhysics_Actor::GetAbsBounds ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 241 of file Physics_Actor.cpp.

const idMat3 & idPhysics_Actor::GetAxis ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 268 of file Physics_Actor.cpp.

const idBounds & idPhysics_Actor::GetBounds ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 232 of file Physics_Actor.cpp.

idClipModel * idPhysics_Actor::GetClipModel ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 176 of file Physics_Actor.cpp.

int idPhysics_Actor::GetContents ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 223 of file Physics_Actor.cpp.

const idMat3 & idPhysics_Actor::GetGravityAxis ( void  ) const

Definition at line 131 of file Physics_Actor.cpp.

idEntity * idPhysics_Actor::GetGroundEntity ( void  ) const

Definition at line 149 of file Physics_Actor.cpp.

float idPhysics_Actor::GetMass ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 205 of file Physics_Actor.cpp.

float idPhysics_Actor::GetMasterDeltaYaw ( void  ) const

Definition at line 140 of file Physics_Actor.cpp.

int idPhysics_Actor::GetNumClipModels ( void  ) const
virtual

Implements idPhysics.

Definition at line 185 of file Physics_Actor.cpp.

const idVec3 & idPhysics_Actor::GetOrigin ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 259 of file Physics_Actor.cpp.

bool idPhysics_Actor::IsPushable ( void  ) const
virtual

Implements idPhysics.

Definition at line 250 of file Physics_Actor.cpp.

void idPhysics_Actor::LinkClip ( void  )
virtual

Implements idPhysics.

Definition at line 365 of file Physics_Actor.cpp.

void idPhysics_Actor::Restore ( idRestoreGame savefile)

Definition at line 90 of file Physics_Actor.cpp.

void idPhysics_Actor::Save ( idSaveGame savefile) const

Definition at line 70 of file Physics_Actor.cpp.

void idPhysics_Actor::SetClipModel ( idClipModel model,
float  density,
int  id = 0,
bool  freeOld = true 
)
virtual

Implements idPhysics.

Definition at line 158 of file Physics_Actor.cpp.

void idPhysics_Actor::SetClipModelAxis ( void  )

Definition at line 110 of file Physics_Actor.cpp.

void idPhysics_Actor::SetContents ( int  contents,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 214 of file Physics_Actor.cpp.

void idPhysics_Actor::SetGravity ( const idVec3 newGravity)
virtual

Implements idPhysics.

Definition at line 277 of file Physics_Actor.cpp.

void idPhysics_Actor::SetMass ( float  mass,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 194 of file Physics_Actor.cpp.

void idPhysics_Actor::UnlinkClip ( void  )
virtual

Implements idPhysics.

Definition at line 356 of file Physics_Actor.cpp.

Member Data Documentation

idClipModel* idPhysics_Actor::clipModel
protected

Definition at line 97 of file Physics_Actor.h.

idMat3 idPhysics_Actor::clipModelAxis
protected

Definition at line 98 of file Physics_Actor.h.

idEntityPtr<idEntity> idPhysics_Actor::groundEntityPtr
protected

Definition at line 110 of file Physics_Actor.h.

float idPhysics_Actor::invMass
protected

Definition at line 102 of file Physics_Actor.h.

float idPhysics_Actor::mass
protected

Definition at line 101 of file Physics_Actor.h.

float idPhysics_Actor::masterDeltaYaw
protected

Definition at line 107 of file Physics_Actor.h.

idEntity* idPhysics_Actor::masterEntity
protected

Definition at line 105 of file Physics_Actor.h.

float idPhysics_Actor::masterYaw
protected

Definition at line 106 of file Physics_Actor.h.


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