#include <entities.h>
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) |
| cEntityBase * | getRobot () |
| void | setRobot (cEntityBase *robot) |
Definition at line 131 of file entities.h.
| cSoul::cSoul | ( | scene::ICameraSceneNode * | camera | ) |
Initialize soul and camera.
| camera | : pointer to the camera node, of which the soul takes care of |
Definition at line 183 of file entities.cpp.
| 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.
| sub | : amount of energy to substract |
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.
1.5.9