cSoul Class Reference

#include <entities.h>

List of all members.

Public Member Functions

 cSoul (scene::ICameraSceneNode *camera)
void changeView (f32 px, f32 py)
void turnAround ()
void updateView ()
void setIndex (int i, int j)
void setGroundLevel (f32 groundLevel)
f32 getGroundLevel ()
int getIndexI ()
int getIndexJ ()
core::vector3df getPosition ()
void setTarget (core::vector3df target)
int getEnergy ()
void addToEnergy (int add)
bool substractFromEnergy (int sub)
cEntityBasegetRobot ()
void setRobot (cEntityBase *robot)


Detailed Description

Definition at line 131 of file entities.h.


Constructor & Destructor Documentation

cSoul::cSoul ( scene::ICameraSceneNode *  camera  ) 

Initialize soul and camera.

Parameters:
camera : pointer to the camera node, of which the soul takes care of

Definition at line 183 of file entities.cpp.


Member Function Documentation

void cSoul::addToEnergy ( int  add  )  [inline]

Definition at line 158 of file entities.h.

void cSoul::changeView ( f32  px,
f32  py 
)

Change view (direction where we looking at).

Definition at line 229 of file entities.cpp.

int cSoul::getEnergy (  )  [inline]

Definition at line 156 of file entities.h.

f32 cSoul::getGroundLevel (  )  [inline]

Definition at line 145 of file entities.h.

int cSoul::getIndexI (  )  [inline]

Definition at line 147 of file entities.h.

int cSoul::getIndexJ (  )  [inline]

Definition at line 149 of file entities.h.

core::vector3df cSoul::getPosition (  )  [inline]

Definition at line 151 of file entities.h.

cEntityBase* cSoul::getRobot (  )  [inline]

Definition at line 163 of file entities.h.

void cSoul::setGroundLevel ( f32  groundLevel  )  [inline]

Definition at line 143 of file entities.h.

void cSoul::setIndex ( int  i,
int  j 
) [inline]

Definition at line 141 of file entities.h.

void cSoul::setRobot ( cEntityBase robot  )  [inline]

Definition at line 165 of file entities.h.

void cSoul::setTarget ( core::vector3df  target  ) 

Definition at line 217 of file entities.cpp.

bool cSoul::substractFromEnergy ( int  sub  ) 

Substract an amount of energy from the souls energy. If the energy of the soul becomes 0 or lower return false - the soul dies of exhaustion.

Parameters:
sub : amount of energy to substract
Returns:
false if energy exhausted, true otherwise

Definition at line 265 of file entities.cpp.

void cSoul::turnAround (  ) 

Quick turn around.

Definition at line 246 of file entities.cpp.

void cSoul::updateView (  ) 

Update view (direction where we looking at).

Definition at line 205 of file entities.cpp.


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

Generated on Thu Jul 30 07:18:41 2009 for Cerberus by  doxygen 1.5.9