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

#include <AF.h>

Public Member Functions

 idAF (void)
 
 ~idAF (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
void SetAnimator (idAnimator *a)
 
bool Load (idEntity *ent, const char *fileName)
 
bool IsLoaded (void) const
 
const char * GetName (void) const
 
void SetupPose (idEntity *ent, int time)
 
void ChangePose (idEntity *ent, int time)
 
int EntitiesTouchingAF (afTouch_t touchList[MAX_GENTITIES]) const
 
void Start (void)
 
void StartFromCurrentPose (int inheritVelocityTime)
 
void Stop (void)
 
void Rest (void)
 
bool IsActive (void) const
 
void SetConstraintPosition (const char *name, const idVec3 &pos)
 
idPhysics_AFGetPhysics (void)
 
const idPhysics_AFGetPhysics (void) const
 
idBounds GetBounds (void) const
 
bool UpdateAnimation (void)
 
void GetPhysicsToVisualTransform (idVec3 &origin, idMat3 &axis) const
 
void GetImpactInfo (idEntity *ent, int id, const idVec3 &point, impactInfo_t *info)
 
void ApplyImpulse (idEntity *ent, int id, const idVec3 &point, const idVec3 &impulse)
 
void AddForce (idEntity *ent, int id, const idVec3 &point, const idVec3 &force)
 
int BodyForClipModelId (int id) const
 
void SaveState (idDict &args) const
 
void LoadState (const idDict &args)
 
void AddBindConstraints (void)
 
void RemoveBindConstraints (void)
 

Protected Member Functions

void SetBase (idAFBody *body, const idJointMat *joints)
 
void AddBody (idAFBody *body, const idJointMat *joints, const char *jointName, const AFJointModType_t mod)
 
bool LoadBody (const idDeclAF_Body *fb, const idJointMat *joints)
 
bool LoadConstraint (const idDeclAF_Constraint *fc)
 
bool TestSolid (void) const
 

Protected Attributes

idStr name
 
idPhysics_AF physicsObj
 
idEntityself
 
idAnimatoranimator
 
int modifiedAnim
 
idVec3 baseOrigin
 
idMat3 baseAxis
 
idList< jointConversion_tjointMods
 
idList< intjointBody
 
int poseTime
 
int restStartTime
 
bool isLoaded
 
bool isActive
 
bool hasBindConstraints
 

Detailed Description

Definition at line 55 of file AF.h.

Constructor & Destructor Documentation

idAF::idAF ( void  )

Definition at line 50 of file AF.cpp.

idAF::~idAF ( void  )

Definition at line 68 of file AF.cpp.

Member Function Documentation

void idAF::AddBindConstraints ( void  )

Definition at line 1160 of file AF.cpp.

void idAF::AddBody ( idAFBody body,
const idJointMat joints,
const char *  jointName,
const AFJointModType_t  mod 
)
protected

Definition at line 446 of file AF.cpp.

void idAF::AddForce ( idEntity ent,
int  id,
const idVec3 point,
const idVec3 force 
)

Definition at line 434 of file AF.cpp.

void idAF::ApplyImpulse ( idEntity ent,
int  id,
const idVec3 point,
const idVec3 impulse 
)

Definition at line 424 of file AF.cpp.

int idAF::BodyForClipModelId ( int  id) const

Definition at line 386 of file AF.cpp.

void idAF::ChangePose ( idEntity ent,
int  time 
)

Definition at line 284 of file AF.cpp.

int idAF::EntitiesTouchingAF ( afTouch_t  touchList[MAX_GENTITIES]) const

Definition at line 336 of file AF.cpp.

idBounds idAF::GetBounds ( void  ) const

Definition at line 195 of file AF.cpp.

void idAF::GetImpactInfo ( idEntity ent,
int  id,
const idVec3 point,
impactInfo_t info 
)

Definition at line 414 of file AF.cpp.

const char* idAF::GetName ( void  ) const
inline

Definition at line 66 of file AF.h.

idPhysics_AF* idAF::GetPhysics ( void  )
inline

Definition at line 77 of file AF.h.

const idPhysics_AF* idAF::GetPhysics ( void  ) const
inline

Definition at line 78 of file AF.h.

void idAF::GetPhysicsToVisualTransform ( idVec3 origin,
idMat3 axis 
) const

Definition at line 404 of file AF.cpp.

bool idAF::IsActive ( void  ) const
inline

Definition at line 74 of file AF.h.

bool idAF::IsLoaded ( void  ) const
inline

Definition at line 65 of file AF.h.

bool idAF::Load ( idEntity ent,
const char *  fileName 
)

Definition at line 795 of file AF.cpp.

bool idAF::LoadBody ( const idDeclAF_Body fb,
const idJointMat joints 
)
protected

Definition at line 489 of file AF.cpp.

bool idAF::LoadConstraint ( const idDeclAF_Constraint fc)
protected

Definition at line 621 of file AF.cpp.

void idAF::LoadState ( const idDict args)

Definition at line 1128 of file AF.cpp.

void idAF::RemoveBindConstraints ( void  )

Definition at line 1248 of file AF.cpp.

void idAF::Rest ( void  )

Definition at line 1053 of file AF.cpp.

void idAF::Restore ( idRestoreGame savefile)

Definition at line 94 of file AF.cpp.

void idAF::Save ( idSaveGame savefile) const

Definition at line 76 of file AF.cpp.

void idAF::SaveState ( idDict args) const

Definition at line 1107 of file AF.cpp.

void idAF::SetAnimator ( idAnimator a)
inline

Definition at line 63 of file AF.h.

void idAF::SetBase ( idAFBody body,
const idJointMat joints 
)
protected

Definition at line 477 of file AF.cpp.

void idAF::SetConstraintPosition ( const char *  name,
const idVec3 pos 
)

Definition at line 1064 of file AF.cpp.

void idAF::SetupPose ( idEntity ent,
int  time 
)

Definition at line 231 of file AF.cpp.

void idAF::Start ( void  )

Definition at line 941 of file AF.cpp.

void idAF::StartFromCurrentPose ( int  inheritVelocityTime)

Definition at line 999 of file AF.cpp.

void idAF::Stop ( void  )

Definition at line 1042 of file AF.cpp.

bool idAF::TestSolid ( void  ) const
protected

Definition at line 961 of file AF.cpp.

bool idAF::UpdateAnimation ( void  )

Definition at line 137 of file AF.cpp.

Member Data Documentation

idAnimator* idAF::animator
protected

Definition at line 98 of file AF.h.

idMat3 idAF::baseAxis
protected

Definition at line 101 of file AF.h.

idVec3 idAF::baseOrigin
protected

Definition at line 100 of file AF.h.

bool idAF::hasBindConstraints
protected

Definition at line 108 of file AF.h.

bool idAF::isActive
protected

Definition at line 107 of file AF.h.

bool idAF::isLoaded
protected

Definition at line 106 of file AF.h.

idList<int> idAF::jointBody
protected

Definition at line 103 of file AF.h.

idList<jointConversion_t> idAF::jointMods
protected

Definition at line 102 of file AF.h.

int idAF::modifiedAnim
protected

Definition at line 99 of file AF.h.

idStr idAF::name
protected

Definition at line 95 of file AF.h.

idPhysics_AF idAF::physicsObj
protected

Definition at line 96 of file AF.h.

int idAF::poseTime
protected

Definition at line 104 of file AF.h.

int idAF::restStartTime
protected

Definition at line 105 of file AF.h.

idEntity* idAF::self
protected

Definition at line 97 of file AF.h.


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