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

#include <Push.h>

Classes

struct  pushed_s
 
struct  pushedGroup_s
 

Public Member Functions

float ClipTranslationalPush (trace_t &results, idEntity *pusher, const int flags, const idVec3 &newOrigin, const idVec3 &move)
 
float ClipRotationalPush (trace_t &results, idEntity *pusher, const int flags, const idMat3 &newAxis, const idRotation &rotation)
 
float ClipPush (trace_t &results, idEntity *pusher, const int flags, const idVec3 &oldOrigin, const idMat3 &oldAxis, idVec3 &newOrigin, idMat3 &newAxis)
 
void InitSavingPushedEntityPositions (void)
 
void RestorePushedEntityPositions (void)
 
int GetNumPushedEntities (void) const
 
idEntityGetPushedEntity (int i) const
 

Private Member Functions

void SaveEntityPosition (idEntity *ent)
 
bool RotateEntityToAxial (idEntity *ent, idVec3 rotationPoint)
 
void ClipEntityRotation (trace_t &trace, const idEntity *ent, const idClipModel *clipModel, idClipModel *skip, const idRotation &rotation)
 
void ClipEntityTranslation (trace_t &trace, const idEntity *ent, const idClipModel *clipModel, idClipModel *skip, const idVec3 &translation)
 
int TryTranslatePushEntity (trace_t &results, idEntity *check, idClipModel *clipModel, const int flags, const idVec3 &newOrigin, const idVec3 &move)
 
int TryRotatePushEntity (trace_t &results, idEntity *check, idClipModel *clipModel, const int flags, const idMat3 &newAxis, const idRotation &rotation)
 
int DiscardEntities (idEntity *entityList[], int numEntities, int flags, idEntity *pusher)
 

Private Attributes

struct idPush::pushed_s pushed [MAX_GENTITIES]
 
int numPushed
 
struct idPush::pushedGroup_s pushedGroup [MAX_GENTITIES]
 
int pushedGroupSize
 

Detailed Description

Definition at line 48 of file Push.h.

Member Function Documentation

void idPush::ClipEntityRotation ( trace_t trace,
const idEntity ent,
const idClipModel clipModel,
idClipModel skip,
const idRotation rotation 
)
private

Definition at line 668 of file Push.cpp.

void idPush::ClipEntityTranslation ( trace_t trace,
const idEntity ent,
const idClipModel clipModel,
idClipModel skip,
const idVec3 translation 
)
private

Definition at line 686 of file Push.cpp.

float idPush::ClipPush ( trace_t results,
idEntity pusher,
const int  flags,
const idVec3 oldOrigin,
const idMat3 oldAxis,
idVec3 newOrigin,
idMat3 newAxis 
)

Definition at line 1390 of file Push.cpp.

float idPush::ClipRotationalPush ( trace_t results,
idEntity pusher,
const int  flags,
const idMat3 newAxis,
const idRotation rotation 
)

Definition at line 1222 of file Push.cpp.

float idPush::ClipTranslationalPush ( trace_t results,
idEntity pusher,
const int  flags,
const idVec3 newOrigin,
const idVec3 move 
)

Definition at line 1042 of file Push.cpp.

int idPush::DiscardEntities ( idEntity entityList[],
int  numEntities,
int  flags,
idEntity pusher 
)
private

Definition at line 993 of file Push.cpp.

int idPush::GetNumPushedEntities ( void  ) const
inline

Definition at line 68 of file Push.h.

idEntity* idPush::GetPushedEntity ( int  i) const
inline

Definition at line 70 of file Push.h.

void idPush::InitSavingPushedEntityPositions ( void  )

Definition at line 40 of file Push.cpp.

void idPush::RestorePushedEntityPositions ( void  )

Definition at line 84 of file Push.cpp.

bool idPush::RotateEntityToAxial ( idEntity ent,
idVec3  rotationPoint 
)
private

Definition at line 105 of file Push.cpp.

void idPush::SaveEntityPosition ( idEntity ent)
private

Definition at line 49 of file Push.cpp.

int idPush::TryRotatePushEntity ( trace_t results,
idEntity check,
idClipModel clipModel,
const int  flags,
const idMat3 newAxis,
const idRotation rotation 
)
private

Definition at line 708 of file Push.cpp.

int idPush::TryTranslatePushEntity ( trace_t results,
idEntity check,
idClipModel clipModel,
const int  flags,
const idVec3 newOrigin,
const idVec3 move 
)
private

Definition at line 866 of file Push.cpp.

Member Data Documentation

int idPush::numPushed
private

Definition at line 77 of file Push.h.

struct idPush::pushed_s idPush::pushed[MAX_GENTITIES]
private
struct idPush::pushedGroup_s idPush::pushedGroup[MAX_GENTITIES]
private
int idPush::pushedGroupSize
private

Definition at line 85 of file Push.h.


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