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

#include <Anim.h>

Public Member Functions

 idAnim ()
 
 idAnim (const idDeclModelDef *modelDef, const idAnim *anim)
 
 ~idAnim ()
 
void SetAnim (const idDeclModelDef *modelDef, const char *sourcename, const char *animname, int num, const idMD5Anim *md5anims[ANIM_MaxSyncedAnims])
 
const char * Name (void) const
 
const char * FullName (void) const
 
const idMD5AnimMD5Anim (int num) const
 
const idDeclModelDefModelDef (void) const
 
int Length (void) const
 
int NumFrames (void) const
 
int NumAnims (void) const
 
const idVec3TotalMovementDelta (void) const
 
bool GetOrigin (idVec3 &offset, int animNum, int time, int cyclecount) const
 
bool GetOriginRotation (idQuat &rotation, int animNum, int currentTime, int cyclecount) const
 
bool GetBounds (idBounds &bounds, int animNum, int time, int cyclecount) const
 
const char * AddFrameCommand (const class idDeclModelDef *modelDef, int framenum, idLexer &src, const idDict *def)
 
void CallFrameCommands (idEntity *ent, int from, int to) const
 
bool HasFrameCommands (void) const
 
int FindFrameForFrameCommand (frameCommandType_t framecommand, const frameCommand_t **command) const
 
void SetAnimFlags (const animFlags_t &animflags)
 
const animFlags_tGetAnimFlags (void) const
 

Private Attributes

const class idDeclModelDefmodelDef
 
const idMD5Animanims [ANIM_MaxSyncedAnims]
 
int numAnims
 
idStr name
 
idStr realname
 
idList< frameLookup_tframeLookup
 
idList< frameCommand_tframeCommands
 
animFlags_t flags
 

Detailed Description

Definition at line 280 of file Anim.h.

Constructor & Destructor Documentation

idAnim::idAnim ( )

Definition at line 49 of file Anim_Blend.cpp.

idAnim::idAnim ( const idDeclModelDef modelDef,
const idAnim anim 
)

Definition at line 61 of file Anim_Blend.cpp.

idAnim::~idAnim ( )

Definition at line 93 of file Anim_Blend.cpp.

Member Function Documentation

const char * idAnim::AddFrameCommand ( const class idDeclModelDef modelDef,
int  framenum,
idLexer src,
const idDict def 
)

Definition at line 281 of file Anim_Blend.cpp.

void idAnim::CallFrameCommands ( idEntity ent,
int  from,
int  to 
) const

Definition at line 721 of file Anim_Blend.cpp.

int idAnim::FindFrameForFrameCommand ( frameCommandType_t  framecommand,
const frameCommand_t **  command 
) const

Definition at line 1031 of file Anim_Blend.cpp.

const char * idAnim::FullName ( void  ) const

Definition at line 154 of file Anim_Blend.cpp.

const animFlags_t & idAnim::GetAnimFlags ( void  ) const

Definition at line 1087 of file Anim_Blend.cpp.

ID_INLINE bool idAnim::GetBounds ( idBounds bounds,
int  animNum,
int  time,
int  cyclecount 
) const

Definition at line 264 of file Anim_Blend.cpp.

bool idAnim::GetOrigin ( idVec3 offset,
int  animNum,
int  time,
int  cyclecount 
) const

Definition at line 234 of file Anim_Blend.cpp.

bool idAnim::GetOriginRotation ( idQuat rotation,
int  animNum,
int  currentTime,
int  cyclecount 
) const

Definition at line 249 of file Anim_Blend.cpp.

bool idAnim::HasFrameCommands ( void  ) const

Definition at line 1066 of file Anim_Blend.cpp.

int idAnim::Length ( void  ) const

Definition at line 186 of file Anim_Blend.cpp.

const idMD5Anim * idAnim::MD5Anim ( int  num) const

Definition at line 165 of file Anim_Blend.cpp.

const idDeclModelDef * idAnim::ModelDef ( void  ) const

Definition at line 177 of file Anim_Blend.cpp.

const char * idAnim::Name ( void  ) const

Definition at line 145 of file Anim_Blend.cpp.

int idAnim::NumAnims ( void  ) const

Definition at line 212 of file Anim_Blend.cpp.

int idAnim::NumFrames ( void  ) const

Definition at line 199 of file Anim_Blend.cpp.

void idAnim::SetAnim ( const idDeclModelDef modelDef,
const char *  sourcename,
const char *  animname,
int  num,
const idMD5Anim md5anims[ANIM_MaxSyncedAnims] 
)

Definition at line 110 of file Anim_Blend.cpp.

void idAnim::SetAnimFlags ( const animFlags_t animflags)

Definition at line 1078 of file Anim_Blend.cpp.

const idVec3 & idAnim::TotalMovementDelta ( void  ) const

Definition at line 221 of file Anim_Blend.cpp.

Member Data Documentation

const idMD5Anim* idAnim::anims[ANIM_MaxSyncedAnims]
private

Definition at line 283 of file Anim.h.

animFlags_t idAnim::flags
private

Definition at line 289 of file Anim.h.

idList<frameCommand_t> idAnim::frameCommands
private

Definition at line 288 of file Anim.h.

idList<frameLookup_t> idAnim::frameLookup
private

Definition at line 287 of file Anim.h.

const class idDeclModelDef* idAnim::modelDef
private

Definition at line 282 of file Anim.h.

idStr idAnim::name
private

Definition at line 285 of file Anim.h.

int idAnim::numAnims
private

Definition at line 284 of file Anim.h.

idStr idAnim::realname
private

Definition at line 286 of file Anim.h.


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