Classes | Public Types | Public Member Functions

Md3Player Class Reference

#include <Md3Player.h>

Collaboration diagram for Md3Player:
Collaboration graph
[legend]

List of all members.

Classes

struct  Md3AnimState

Public Types

typedef map< string,
Md3PlayerSkinPtr > 
SkinMap

Public Member Functions

 Md3Player (const string &path, Md3PlayerLOD lod=kLodDefault)
 ~Md3Player ()
void draw () const
void renderFrame (int upperFrame, int lowerFrame) const
void animate (float dt)
void setScale (float scale)
void setAnimation (Md3PlayerAnimType type)
void setSkin (const string &name)
void linkWeapon (Md3Weapon *weapon)
void unlinkWeapon ()
float scale () const
const string & path () const
const string & name () const
Md3PlayerLOD lod () const
const SkinMapskins () const
const string & skinName () const
void getAnimationState (eAnimationArea area, Md3AnimState_t &state)
void setAnimationState (eAnimationArea area, const Md3AnimState_t &state)

Detailed Description

Definition at line 229 of file Md3Player.h.


Member Typedef Documentation

typedef map<string, Md3PlayerSkinPtr> Md3Player::SkinMap

Definition at line 263 of file Md3Player.h.


Constructor & Destructor Documentation

Md3Player::Md3Player ( const string &  path,
Md3PlayerLOD  lod = kLodDefault 
)

Definition at line 369 of file Md3Player.cpp.

Md3Player::~Md3Player (  ) 

Definition at line 397 of file Md3Player.cpp.


Member Function Documentation

void Md3Player::draw (  )  const

Definition at line 409 of file Md3Player.cpp.

void Md3Player::renderFrame ( int  upperFrame,
int  lowerFrame 
) const

Definition at line 457 of file Md3Player.cpp.

void Md3Player::animate ( float  dt  ) 

Definition at line 499 of file Md3Player.cpp.

void Md3Player::setScale ( float  scale  )  [inline]

Definition at line 271 of file Md3Player.h.

void Md3Player::setAnimation ( Md3PlayerAnimType  type  ) 

Definition at line 513 of file Md3Player.cpp.

void Md3Player::setSkin ( const string &  name  ) 

Definition at line 539 of file Md3Player.cpp.

void Md3Player::linkWeapon ( Md3Weapon weapon  ) 

Definition at line 561 of file Md3Player.cpp.

void Md3Player::unlinkWeapon (  ) 

Definition at line 577 of file Md3Player.cpp.

float Md3Player::scale (  )  const [inline]

Definition at line 279 of file Md3Player.h.

const string& Md3Player::path (  )  const [inline]

Definition at line 280 of file Md3Player.h.

const string& Md3Player::name (  )  const [inline]

Definition at line 281 of file Md3Player.h.

Md3PlayerLOD Md3Player::lod (  )  const [inline]

Definition at line 282 of file Md3Player.h.

const SkinMap& Md3Player::skins (  )  const [inline]

Definition at line 283 of file Md3Player.h.

const string& Md3Player::skinName (  )  const [inline]

Definition at line 284 of file Md3Player.h.

void Md3Player::getAnimationState ( eAnimationArea  area,
Md3AnimState_t state 
)

Definition at line 597 of file Md3Player.cpp.

void Md3Player::setAnimationState ( eAnimationArea  area,
const Md3AnimState_t state 
)

Definition at line 632 of file Md3Player.cpp.


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