Public Member Functions | Private Types | Private Attributes

Md3Weapon Class Reference

#include <Md3Player.h>

Collaboration diagram for Md3Weapon:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Md3Weapon (const string &path, Md3PlayerLOD lod=kLodDefault) throw (Md3Exception)
 ~Md3Weapon ()
void draw () const
void scaleModels () const
void linkToModel (Md3Model *model)
void setScale (float scale)
float scale () const
const string & path () const
const string & name () const
Md3PlayerLOD lod () const

Private Types

typedef shared_ptr< Md3ModelMd3ModelPtr

Private Attributes

Md3ModelPtr _weapon
Md3ModelPtr _barrel
string _path
string _name
float _scale
Md3PlayerLOD _lod

Detailed Description

Definition at line 185 of file Md3Player.h.


Member Typedef Documentation

typedef shared_ptr<Md3Model> Md3Weapon::Md3ModelPtr [private]

Definition at line 195 of file Md3Player.h.


Constructor & Destructor Documentation

Md3Weapon::Md3Weapon ( const string &  path,
Md3PlayerLOD  lod = kLodDefault 
) throw (Md3Exception)

Definition at line 169 of file Md3Player.cpp.

Md3Weapon::~Md3Weapon (  ) 

Definition at line 225 of file Md3Player.cpp.


Member Function Documentation

void Md3Weapon::draw (  )  const

Definition at line 238 of file Md3Player.cpp.

void Md3Weapon::scaleModels (  )  const

Definition at line 261 of file Md3Player.cpp.

void Md3Weapon::linkToModel ( Md3Model model  ) 

Definition at line 278 of file Md3Player.cpp.

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

Definition at line 203 of file Md3Player.h.

float Md3Weapon::scale (  )  const [inline]

Definition at line 206 of file Md3Player.h.

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

Definition at line 207 of file Md3Player.h.

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

Definition at line 208 of file Md3Player.h.

Md3PlayerLOD Md3Weapon::lod (  )  const [inline]

Definition at line 209 of file Md3Player.h.


Member Data Documentation

Definition at line 213 of file Md3Player.h.

Definition at line 214 of file Md3Player.h.

string Md3Weapon::_path [private]

Definition at line 216 of file Md3Player.h.

string Md3Weapon::_name [private]

Definition at line 217 of file Md3Player.h.

float Md3Weapon::_scale [private]

Definition at line 218 of file Md3Player.h.

Definition at line 219 of file Md3Player.h.


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