Model_character Class Reference

#include <Model_character.h>

Inheritance diagram for Model_character:

Model_3D List of all members.

Public Member Functions

 Model_character (const char *filename)
void advance_model (float time_since_last_update, float animation_frames_per_second)
void move_model (float time_since_last_update)
void action_start_running ()
void action_jump ()
void action_fall ()
int get_action () const

Detailed Description

a extension of the Model_3D class that defines the "moblu" character models actions and performs the animation and movement updates


Constructor & Destructor Documentation

Model_character::Model_character const char *  filename  ) 
 

loads ms3d character model from filesource filename


Member Function Documentation

void Model_character::action_fall  ) 
 

character model' fall animation will be used when this function is called

void Model_character::action_jump  ) 
 

character model's jumping animation will be used when this function is called

void Model_character::action_start_running  ) 
 

character model will start running when this function is called

void Model_character::advance_model float  time_since_last_update,
float  animation_frames_per_second
 

advances character model's animation state in relation to the time passed

int Model_character::get_action  )  const
 

returns the actual model's action as int value: 0...stand; 1...run; 2...jump; 3...fall

void Model_character::move_model float  time_since_last_update  ) 
 

moves the character model in relation to the time passed


The documentation for this class was generated from the following files:
Generated on Sun Jan 22 16:27:12 2006 for moblu by  doxygen 1.4.6-NO