Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Actor Class Reference

#include <Actor.h>

Inheritance diagram for Actor:

[legend]
Collaboration diagram for Actor:
[legend]
List of all members.

Public Methods

 Actor (string filename="")
virtual ~Actor ()
virtual void draw ()=0
Vector3 walk (double speed)
Vector3 run (double speed)
vector< Inventory * > getInventory ()
void addInventory (Inventory *v)
void nextInventory ()
InventorygetCurrentInventory ()
void putInventoryAway ()
void addMoney (int i)
int getMoney ()
void subtractMoney (int i)
void setAnimationType (int i)
void nextAnimation ()
virtual void update (double time)

Protected Attributes

SuperModel_character
UserFunctionTextureufTexture
map< int, unsigned int > _animations
Animation _currentAnimation
vector< Inventory * > _inventory
Inventory_currentInventory
vector< Animation_queuedAnimations
bool _animationStarted
bool _animationFinished
double _startAnimationTime
Vector3 _localRotate
Vector3 _localTranslate
int _money
GLuint _moneyTexture

Detailed Description

Base class for all characters


Constructor & Destructor Documentation

Actor::Actor string    filename = ""
 

Actor::~Actor   [virtual]
 


Member Function Documentation

void Actor::addInventory Inventory   v [inline]
 

void Actor::addMoney int    i [inline]
 

virtual void Actor::draw   [pure virtual]
 

Reimplemented from Object.

Implemented in Human.

Inventory* Actor::getCurrentInventory   [inline]
 

vector< Inventory * > Actor::getInventory   [inline]
 

int Actor::getMoney   [inline]
 

void Actor::nextAnimation  
 

go to the next animation

void Actor::nextInventory  
 

void Actor::putInventoryAway   [inline]
 

Vector3 Actor::run double    speed
 

void Actor::setAnimationType int    i
 

set the animation type base in an animation from AnimationTypes.h If we are in the middle of an animation, we'll queue this

void Actor::subtractMoney int    i [inline]
 

virtual void Actor::update double    time [inline, virtual]
 

Vector3 Actor::walk double    speed
 


Member Data Documentation

bool Actor::_animationFinished [protected]
 

map< int, unsigned int > Actor::_animations [protected]
 

hold a list of animations and the current animation we are running

bool Actor::_animationStarted [protected]
 

SuperModel* Actor::_character [protected]
 

hold the super model object with animations

Animation Actor::_currentAnimation [protected]
 

Inventory* Actor::_currentInventory [protected]
 

vector< Inventory * > Actor::_inventory [protected]
 

Vector to hold the user's inventory

Vector3 Actor::_localRotate [protected]
 

Vector3 Actor::_localTranslate [protected]
 

int Actor::_money [protected]
 

GLuint Actor::_moneyTexture [protected]
 

vector< Animation > Actor::_queuedAnimations [protected]
 

double Actor::_startAnimationTime [protected]
 

UserFunctionTexture* Actor::ufTexture [protected]
 

hold the texture loader


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:06 2004 for naturecalls by doxygen1.2.18