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

#include <Physics_StaticMulti.h>

Inheritance diagram for idPhysics_StaticMulti:
idPhysics idClass

Public Member Functions

 CLASS_PROTOTYPE (idPhysics_StaticMulti)
 
 idPhysics_StaticMulti (void)
 
 ~idPhysics_StaticMulti (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
void RemoveIndex (int id=0, bool freeClipModel=true)
 
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
 
idList< staticPState_tcurrent
 
idList< idClipModel * > clipModels
 
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 40 of file Physics_StaticMulti.h.

Constructor & Destructor Documentation

idPhysics_StaticMulti::idPhysics_StaticMulti ( void  )

Definition at line 45 of file Physics_StaticMulti.cpp.

idPhysics_StaticMulti::~idPhysics_StaticMulti ( void  )

Definition at line 66 of file Physics_StaticMulti.cpp.

Member Function Documentation

void idPhysics_StaticMulti::Activate ( void  )
virtual

Implements idPhysics.

Definition at line 425 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::AddContactEntity ( idEntity e)
virtual

Implements idPhysics.

Definition at line 858 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 417 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 409 of file Physics_StaticMulti.cpp.

idPhysics_StaticMulti::CLASS_PROTOTYPE ( idPhysics_StaticMulti  )
void idPhysics_StaticMulti::ClearContacts ( void  )
virtual

Implements idPhysics.

Definition at line 850 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 739 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 729 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 719 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::DisableClip ( void  )
virtual

Implements idPhysics.

Definition at line 761 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::EnableClip ( void  )
virtual

Implements idPhysics.

Definition at line 776 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 353 of file Physics_StaticMulti.cpp.

bool idPhysics_StaticMulti::EvaluateContacts ( void  )
virtual

Implements idPhysics.

Definition at line 821 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 327 of file Physics_StaticMulti.cpp.

int idPhysics_StaticMulti::GetAngularEndTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 986 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 682 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 641 of file Physics_StaticMulti.cpp.

idEntity * idPhysics_StaticMulti::GetBlockingEntity ( void  ) const
virtual

Implements idPhysics.

Definition at line 968 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 959 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 294 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 285 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 196 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 839 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 255 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 699 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 709 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 400 of file Physics_StaticMulti.cpp.

int idPhysics_StaticMulti::GetLinearEndTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 977 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 673 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 225 of file Physics_StaticMulti.cpp.

int idPhysics_StaticMulti::GetNumClipModels ( void  ) const
virtual

Implements idPhysics.

Definition at line 208 of file Physics_StaticMulti.cpp.

int idPhysics_StaticMulti::GetNumContacts ( void  ) const
virtual

Implements idPhysics.

Definition at line 830 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 625 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 918 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 909 of file Physics_StaticMulti.cpp.

int idPhysics_StaticMulti::GetRestStartTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 450 of file Physics_StaticMulti.cpp.

int idPhysics_StaticMulti::GetTime ( void  ) const
virtual

Implements idPhysics.

Definition at line 391 of file Physics_StaticMulti.cpp.

bool idPhysics_StaticMulti::HasGroundContacts ( void  ) const
virtual

Implements idPhysics.

Definition at line 874 of file Physics_StaticMulti.cpp.

bool idPhysics_StaticMulti::IsAtRest ( void  ) const
virtual

Implements idPhysics.

Definition at line 441 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 892 of file Physics_StaticMulti.cpp.

bool idPhysics_StaticMulti::IsGroundEntity ( int  entityNum) const
virtual

Implements idPhysics.

Definition at line 883 of file Physics_StaticMulti.cpp.

bool idPhysics_StaticMulti::IsPushable ( void  ) const
virtual

Implements idPhysics.

Definition at line 459 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::LinkClip ( void  )
virtual

Implements idPhysics.

Definition at line 806 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::PutToRest ( void  )
virtual

Implements idPhysics.

Definition at line 433 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::ReadFromSnapshot ( const idBitMsgDelta msg)
virtual

Implements idPhysics.

Definition at line 1025 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::RemoveContactEntity ( idEntity e)
virtual

Implements idPhysics.

Definition at line 866 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::RemoveIndex ( int  id = 0,
bool  freeClipModel = true 
)

Definition at line 147 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::Restore ( idRestoreGame savefile)

Definition at line 108 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::RestoreState ( void  )
virtual

Implements idPhysics.

Definition at line 476 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 578 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::Save ( idSaveGame savefile) const

Definition at line 81 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::SaveState ( void  )
virtual

Implements idPhysics.

Definition at line 468 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 665 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 514 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 277 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 164 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 234 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::SetGravity ( const idVec3 newGravity)
virtual

Implements idPhysics.

Definition at line 691 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 657 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 217 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 927 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 484 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::SetPushed ( int  deltaTime)
virtual

Implements idPhysics.

Definition at line 901 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::SetSelf ( idEntity e)
virtual

Implements idPhysics.

Definition at line 137 of file Physics_StaticMulti.cpp.

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

Implements idPhysics.

Definition at line 551 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::UnlinkClip ( void  )
virtual

Implements idPhysics.

Definition at line 791 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::UpdateTime ( int  endTimeMSec)
virtual

Implements idPhysics.

Definition at line 383 of file Physics_StaticMulti.cpp.

void idPhysics_StaticMulti::WriteToSnapshot ( idBitMsgDelta msg) const
virtual

Implements idPhysics.

Definition at line 995 of file Physics_StaticMulti.cpp.

Member Data Documentation

idList<idClipModel *> idPhysics_StaticMulti::clipModels
protected

Definition at line 147 of file Physics_StaticMulti.h.

idList<staticPState_t> idPhysics_StaticMulti::current
protected

Definition at line 146 of file Physics_StaticMulti.h.

bool idPhysics_StaticMulti::hasMaster
protected

Definition at line 150 of file Physics_StaticMulti.h.

bool idPhysics_StaticMulti::isOrientated
protected

Definition at line 151 of file Physics_StaticMulti.h.

idEntity* idPhysics_StaticMulti::self
protected

Definition at line 145 of file Physics_StaticMulti.h.


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