Roller Class Reference

This is the player character. More...

#include <roller.h>

Inheritance diagram for Roller:

Object List of all members.

Public Member Functions

 Roller (irr::IrrlichtDevice *device, irr::core::stringc filePath, irr::core::vector3df position)
 ~Roller ()
 Destructor:.
void update (irr::u32 deltaTime)
void load (irr::core::stringc filePath)
void safe (irr::core::stringc filePath)
void addVelocity (irr::core::vector3df f)
void setCollisionTriangles (irr::scene::ITriangleSelector *world)

Detailed Description

This is the player character.

Is chased by Camera (3rd person). Offers service to respond to collisions. A CollisionResponseAnimator will do this for us. Therefor this class holds a ISceneNodeAnimatorCollisionResponse* and a IAnimatedMeshSceneNode*. Setup connection between Roller and Terrain is the respondsabilty of class Collision.

Todo:
write Camera class.

write Collision class.

Definition at line 16 of file roller.h.


Constructor & Destructor Documentation

Roller::Roller irr::IrrlichtDevice *  device,
irr::core::stringc  filePath,
irr::core::vector3df  position
 

Constructor.

Parameters:
device : An IrrlichtDevice*, needed to access media.
filePath : A string, naming the mesh.
position : Defines, where to put Roller in space.


Member Function Documentation

void Roller::load irr::core::stringc  filePath  )  [virtual]
 

For data driven object creation (e.g. load mesh via config file).

Parameters:
configFileName : A string (path and name) to config load file.

Implements Object.

void Roller::safe irr::core::stringc  filePath  )  [virtual]
 

For object serialization.

Parameters:
configFileName : A string (path and name) to config safe file.

Implements Object.

void Roller::update irr::u32  deltaTime  )  [virtual]
 

To be called on every frame.

Parameters:
deltaTime : A unsigned int representing milliseconds since last call.

Implements Object.


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 17:09:58 2007 for Swarm by  doxygen 1.4.6-NO