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 | List of all members
idPhysics Class Referenceabstract

#include <Physics.h>

Inheritance diagram for idPhysics:
idClass idPhysics_Base idPhysics_Static idPhysics_StaticMulti idPhysics_Actor idPhysics_AF idPhysics_Parametric idPhysics_RigidBody idPhysics_Monster idPhysics_Player

Public Member Functions

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

Detailed Description

Definition at line 76 of file Physics.h.

Constructor & Destructor Documentation

END_CLASS idPhysics::~idPhysics ( void  )
virtual

Definition at line 43 of file Physics.cpp.

Member Function Documentation

idPhysics::ABSTRACT_PROTOTYPE ( idPhysics  )
virtual void idPhysics::Activate ( void  )
pure virtual
virtual void idPhysics::AddContactEntity ( idEntity e)
pure virtual
virtual void idPhysics::AddForce ( const int  id,
const idVec3 point,
const idVec3 force 
)
pure virtual
virtual void idPhysics::ApplyImpulse ( const int  id,
const idVec3 point,
const idVec3 impulse 
)
pure virtual
virtual void idPhysics::ClearContacts ( void  )
pure virtual
virtual int idPhysics::ClipContents ( const idClipModel model) const
pure virtual
virtual void idPhysics::ClipRotation ( trace_t results,
const idRotation rotation,
const idClipModel model 
) const
pure virtual
virtual void idPhysics::ClipTranslation ( trace_t results,
const idVec3 translation,
const idClipModel model 
) const
pure virtual
virtual void idPhysics::DisableClip ( void  )
pure virtual
virtual void idPhysics::EnableClip ( void  )
pure virtual
virtual bool idPhysics::Evaluate ( int  timeStepMSec,
int  endTimeMSec 
)
pure virtual
virtual bool idPhysics::EvaluateContacts ( void  )
pure virtual
virtual const idBounds& idPhysics::GetAbsBounds ( int  id = -1) const
pure virtual
virtual int idPhysics::GetAngularEndTime ( void  ) const
pure virtual
virtual const idVec3& idPhysics::GetAngularVelocity ( int  id = 0) const
pure virtual
virtual const idMat3& idPhysics::GetAxis ( int  id = 0) const
pure virtual
virtual idEntity* idPhysics::GetBlockingEntity ( void  ) const
pure virtual
virtual const trace_t* idPhysics::GetBlockingInfo ( void  ) const
pure virtual
virtual const idBounds& idPhysics::GetBounds ( int  id = -1) const
pure virtual
virtual int idPhysics::GetClipMask ( int  id = -1) const
pure virtual
virtual idClipModel* idPhysics::GetClipModel ( int  id = 0) const
pure virtual
virtual const contactInfo_t& idPhysics::GetContact ( int  num) const
pure virtual
virtual int idPhysics::GetContents ( int  id = -1) const
pure virtual
virtual const idVec3& idPhysics::GetGravity ( void  ) const
pure virtual
virtual const idVec3& idPhysics::GetGravityNormal ( void  ) const
pure virtual
virtual void idPhysics::GetImpactInfo ( const int  id,
const idVec3 point,
impactInfo_t info 
) const
pure virtual
virtual int idPhysics::GetLinearEndTime ( void  ) const
pure virtual
virtual const idVec3& idPhysics::GetLinearVelocity ( int  id = 0) const
pure virtual
virtual float idPhysics::GetMass ( int  id = -1) const
pure virtual
virtual int idPhysics::GetNumClipModels ( void  ) const
pure virtual
virtual int idPhysics::GetNumContacts ( void  ) const
pure virtual
virtual const idVec3& idPhysics::GetOrigin ( int  id = 0) const
pure virtual
virtual const idVec3& idPhysics::GetPushedAngularVelocity ( const int  id = 0) const
pure virtual
virtual const idVec3& idPhysics::GetPushedLinearVelocity ( const int  id = 0) const
pure virtual
virtual int idPhysics::GetRestStartTime ( void  ) const
pure virtual
virtual int idPhysics::GetTime ( void  ) const
pure virtual
virtual bool idPhysics::HasGroundContacts ( void  ) const
pure virtual
virtual bool idPhysics::IsAtRest ( void  ) const
pure virtual
virtual bool idPhysics::IsGroundClipModel ( int  entityNum,
int  id 
) const
pure virtual
virtual bool idPhysics::IsGroundEntity ( int  entityNum) const
pure virtual
virtual bool idPhysics::IsPushable ( void  ) const
pure virtual
virtual void idPhysics::LinkClip ( void  )
pure virtual
virtual void idPhysics::PutToRest ( void  )
pure virtual
virtual void idPhysics::ReadFromSnapshot ( const idBitMsgDelta msg)
pure virtual
virtual void idPhysics::RemoveContactEntity ( idEntity e)
pure virtual
void idPhysics::Restore ( idRestoreGame savefile)

Definition at line 59 of file Physics.cpp.

virtual void idPhysics::RestoreState ( void  )
pure virtual
virtual void idPhysics::Rotate ( const idRotation rotation,
int  id = -1 
)
pure virtual
void idPhysics::Save ( idSaveGame savefile) const

Definition at line 51 of file Physics.cpp.

virtual void idPhysics::SaveState ( void  )
pure virtual
virtual void idPhysics::SetAngularVelocity ( const idVec3 newAngularVelocity,
int  id = 0 
)
pure virtual
virtual void idPhysics::SetAxis ( const idMat3 newAxis,
int  id = -1 
)
pure virtual
void idPhysics::SetClipBox ( const idBounds bounds,
float  density 
)
virtual

Definition at line 67 of file Physics.cpp.

virtual void idPhysics::SetClipMask ( int  mask,
int  id = -1 
)
pure virtual
virtual void idPhysics::SetClipModel ( idClipModel model,
float  density,
int  id = 0,
bool  freeOld = true 
)
pure virtual
virtual void idPhysics::SetContents ( int  contents,
int  id = -1 
)
pure virtual
virtual void idPhysics::SetGravity ( const idVec3 newGravity)
pure virtual
virtual void idPhysics::SetLinearVelocity ( const idVec3 newLinearVelocity,
int  id = 0 
)
pure virtual
virtual void idPhysics::SetMass ( float  mass,
int  id = -1 
)
pure virtual
virtual void idPhysics::SetMaster ( idEntity master,
const bool  orientated = true 
)
pure virtual
virtual void idPhysics::SetOrigin ( const idVec3 newOrigin,
int  id = -1 
)
pure virtual
virtual void idPhysics::SetPushed ( int  deltaTime)
pure virtual
virtual void idPhysics::SetSelf ( idEntity e)
pure virtual
int idPhysics::SnapTimeToPhysicsFrame ( int  t)
static

Definition at line 76 of file Physics.cpp.

virtual void idPhysics::Translate ( const idVec3 translation,
int  id = -1 
)
pure virtual
virtual void idPhysics::UnlinkClip ( void  )
pure virtual
virtual void idPhysics::UpdateTime ( int  endTimeMSec)
pure virtual
virtual void idPhysics::WriteToSnapshot ( idBitMsgDelta msg) const
pure virtual

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