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_Static Class Reference

#include <Physics_Static.h>

Inheritance diagram for idPhysics_Static:
idPhysics idClass

Public Member Functions

 CLASS_PROTOTYPE (idPhysics_Static)
 
 idPhysics_Static (void)
 
 ~idPhysics_Static (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

idEntityself
 
staticPState_t current
 
idClipModelclipModel
 
bool hasMaster
 
bool isOrientated
 

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)
 

Detailed Description

Definition at line 47 of file Physics_Static.h.

Constructor & Destructor Documentation

END_CLASS idPhysics_Static::idPhysics_Static ( void  )

Definition at line 42 of file Physics_Static.cpp.

idPhysics_Static::~idPhysics_Static ( void  )

Definition at line 58 of file Physics_Static.cpp.

Member Function Documentation

void idPhysics_Static::Activate ( void  )
virtual

Implements idPhysics.

Definition at line 313 of file Physics_Static.cpp.

void idPhysics_Static::AddContactEntity ( idEntity e)
virtual

Implements idPhysics.

Definition at line 665 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 305 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 297 of file Physics_Static.cpp.

idPhysics_Static::CLASS_PROTOTYPE ( idPhysics_Static  )
void idPhysics_Static::ClearContacts ( void  )
virtual

Implements idPhysics.

Definition at line 657 of file Physics_Static.cpp.

int idPhysics_Static::ClipContents ( const idClipModel model) const
virtual

Implements idPhysics.

Definition at line 567 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 553 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 538 of file Physics_Static.cpp.

void idPhysics_Static::DisableClip ( void  )
virtual

Implements idPhysics.

Definition at line 584 of file Physics_Static.cpp.

void idPhysics_Static::EnableClip ( void  )
virtual

Implements idPhysics.

Definition at line 595 of file Physics_Static.cpp.

bool idPhysics_Static::Evaluate ( int  timeStepMSec,
int  endTimeMSec 
)
virtual

Implements idPhysics.

Definition at line 241 of file Physics_Static.cpp.

bool idPhysics_Static::EvaluateContacts ( void  )
virtual

Implements idPhysics.

Definition at line 628 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 226 of file Physics_Static.cpp.

int idPhysics_Static::GetAngularEndTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 790 of file Physics_Static.cpp.

const idVec3 & idPhysics_Static::GetAngularVelocity ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 501 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 467 of file Physics_Static.cpp.

idEntity * idPhysics_Static::GetBlockingEntity ( void  ) const
virtual

Implements idPhysics.

Definition at line 772 of file Physics_Static.cpp.

const trace_t * idPhysics_Static::GetBlockingInfo ( void  ) const
virtual

Implements idPhysics.

Definition at line 763 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 214 of file Physics_Static.cpp.

int idPhysics_Static::GetClipMask ( int  id = -1) const
virtual

Implements idPhysics.

Definition at line 205 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 136 of file Physics_Static.cpp.

const contactInfo_t & idPhysics_Static::GetContact ( int  num) const
virtual

Implements idPhysics.

Definition at line 646 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 185 of file Physics_Static.cpp.

const idVec3 & idPhysics_Static::GetGravity ( void  ) const
virtual

Implements idPhysics.

Definition at line 518 of file Physics_Static.cpp.

const idVec3 & idPhysics_Static::GetGravityNormal ( void  ) const
virtual

Implements idPhysics.

Definition at line 528 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 288 of file Physics_Static.cpp.

int idPhysics_Static::GetLinearEndTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 781 of file Physics_Static.cpp.

const idVec3 & idPhysics_Static::GetLinearVelocity ( int  id = 0) const
virtual

Implements idPhysics.

Definition at line 492 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 165 of file Physics_Static.cpp.

int idPhysics_Static::GetNumClipModels ( void  ) const
virtual

Implements idPhysics.

Definition at line 148 of file Physics_Static.cpp.

int idPhysics_Static::GetNumContacts ( void  ) const
virtual

Implements idPhysics.

Definition at line 637 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 458 of file Physics_Static.cpp.

const idVec3 & idPhysics_Static::GetPushedAngularVelocity ( const int  id = 0) const
virtual

Implements idPhysics.

Definition at line 725 of file Physics_Static.cpp.

const idVec3 & idPhysics_Static::GetPushedLinearVelocity ( const int  id = 0) const
virtual

Implements idPhysics.

Definition at line 716 of file Physics_Static.cpp.

int idPhysics_Static::GetRestStartTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 338 of file Physics_Static.cpp.

int idPhysics_Static::GetTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 279 of file Physics_Static.cpp.

bool idPhysics_Static::HasGroundContacts ( void  ) const
virtual

Implements idPhysics.

Definition at line 681 of file Physics_Static.cpp.

bool idPhysics_Static::IsAtRest ( void  ) const
virtual

Implements idPhysics.

Definition at line 329 of file Physics_Static.cpp.

bool idPhysics_Static::IsGroundClipModel ( int  entityNum,
int  id 
) const
virtual

Implements idPhysics.

Definition at line 699 of file Physics_Static.cpp.

bool idPhysics_Static::IsGroundEntity ( int  entityNum) const
virtual

Implements idPhysics.

Definition at line 690 of file Physics_Static.cpp.

bool idPhysics_Static::IsPushable ( void  ) const
virtual

Implements idPhysics.

Definition at line 347 of file Physics_Static.cpp.

void idPhysics_Static::LinkClip ( void  )
virtual

Implements idPhysics.

Definition at line 617 of file Physics_Static.cpp.

void idPhysics_Static::PutToRest ( void  )
virtual

Implements idPhysics.

Definition at line 321 of file Physics_Static.cpp.

void idPhysics_Static::ReadFromSnapshot ( const idBitMsgDelta msg)
virtual

Implements idPhysics.

Definition at line 824 of file Physics_Static.cpp.

void idPhysics_Static::RemoveContactEntity ( idEntity e)
virtual

Implements idPhysics.

Definition at line 673 of file Physics_Static.cpp.

void idPhysics_Static::Restore ( idRestoreGame savefile)

Definition at line 91 of file Physics_Static.cpp.

void idPhysics_Static::RestoreState ( void  )
virtual

Implements idPhysics.

Definition at line 364 of file Physics_Static.cpp.

void idPhysics_Static::Rotate ( const idRotation rotation,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 432 of file Physics_Static.cpp.

void idPhysics_Static::Save ( idSaveGame savefile) const

Definition at line 73 of file Physics_Static.cpp.

void idPhysics_Static::SaveState ( void  )
virtual

Implements idPhysics.

Definition at line 356 of file Physics_Static.cpp.

void idPhysics_Static::SetAngularVelocity ( const idVec3 newAngularVelocity,
int  id = 0 
)
virtual

Implements idPhysics.

Definition at line 484 of file Physics_Static.cpp.

void idPhysics_Static::SetAxis ( const idMat3 newAxis,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 395 of file Physics_Static.cpp.

void idPhysics_Static::SetClipMask ( int  mask,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 197 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 119 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 174 of file Physics_Static.cpp.

void idPhysics_Static::SetGravity ( const idVec3 newGravity)
virtual

Implements idPhysics.

Definition at line 510 of file Physics_Static.cpp.

void idPhysics_Static::SetLinearVelocity ( const idVec3 newLinearVelocity,
int  id = 0 
)
virtual

Implements idPhysics.

Definition at line 476 of file Physics_Static.cpp.

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

Implements idPhysics.

Definition at line 157 of file Physics_Static.cpp.

void idPhysics_Static::SetMaster ( idEntity master,
const bool  orientated = true 
)
virtual

Implements idPhysics.

Definition at line 734 of file Physics_Static.cpp.

void idPhysics_Static::SetOrigin ( const idVec3 newOrigin,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 372 of file Physics_Static.cpp.

void idPhysics_Static::SetPushed ( int  deltaTime)
virtual

Implements idPhysics.

Definition at line 708 of file Physics_Static.cpp.

void idPhysics_Static::SetSelf ( idEntity e)
virtual

Implements idPhysics.

Definition at line 109 of file Physics_Static.cpp.

void idPhysics_Static::Translate ( const idVec3 translation,
int  id = -1 
)
virtual

Implements idPhysics.

Definition at line 418 of file Physics_Static.cpp.

void idPhysics_Static::UnlinkClip ( void  )
virtual

Implements idPhysics.

Definition at line 606 of file Physics_Static.cpp.

void idPhysics_Static::UpdateTime ( int  endTimeMSec)
virtual

Implements idPhysics.

Definition at line 271 of file Physics_Static.cpp.

void idPhysics_Static::WriteToSnapshot ( idBitMsgDelta msg) const
virtual

Implements idPhysics.

Definition at line 799 of file Physics_Static.cpp.

Member Data Documentation

idClipModel* idPhysics_Static::clipModel
protected

Definition at line 151 of file Physics_Static.h.

staticPState_t idPhysics_Static::current
protected

Definition at line 150 of file Physics_Static.h.

bool idPhysics_Static::hasMaster
protected

Definition at line 154 of file Physics_Static.h.

bool idPhysics_Static::isOrientated
protected

Definition at line 155 of file Physics_Static.h.

idEntity* idPhysics_Static::self
protected

Definition at line 149 of file Physics_Static.h.


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