#include <lieu.h>
Public Member Functions | |
lieu () | |
~lieu () | |
int | init (int, coeur *, IXMLReader *) |
int | update () |
Updating(should be call on each loop). | |
int | close () |
Close the base. | |
staticMesh * | addStaticMesh (stringc, int) |
observationMesh * | addObservationMesh (stringc, int, int) |
prendreMesh * | addPrendreMesh (stringc, int, int, int) |
animateMesh * | addAnimateMesh (stringc, int, int, int, int, int) |
staticMesh * | getStaticMeshFromId (int id) |
actionMesh * | getActionMesh (int id) |
actionMesh * | getActionMesh (ISceneNode *) |
bool | OnEvent (const SEvent &event) |
Private Attributes | |
std::vector< staticMesh * > * | listStatic |
std::vector< actionMesh * > * | listAction |
Definition at line 2 of file lieu.h.
lieu::lieu | ( | ) |
Definition at line 3 of file lieu.cpp.
References listAction, and listStatic.
lieu::~lieu | ( | ) |
Definition at line 9 of file lieu.cpp.
References listAction, and listStatic.
animateMesh * lieu::addAnimateMesh | ( | stringc | path, | |
int | i, | |||
int | c, | |||
int | ite, | |||
int | b, | |||
int | e | |||
) |
Definition at line 209 of file lieu.cpp.
References coeur::addMesh(), staticMesh::getNode(), animateMesh::init(), listAction, base::log(), and base::mycore.
Referenced by init().
observationMesh * lieu::addObservationMesh | ( | stringc | path, | |
int | i, | |||
int | c | |||
) |
Definition at line 189 of file lieu.cpp.
References coeur::addMesh(), staticMesh::getNode(), observationMesh::init(), listAction, base::log(), and base::mycore.
Referenced by init().
prendreMesh * lieu::addPrendreMesh | ( | stringc | path, | |
int | i, | |||
int | c, | |||
int | ite | |||
) |
Definition at line 199 of file lieu.cpp.
References coeur::addMesh(), staticMesh::getNode(), prendreMesh::init(), listAction, base::log(), and base::mycore.
Referenced by init().
staticMesh * lieu::addStaticMesh | ( | stringc | path, | |
int | i | |||
) |
Definition at line 179 of file lieu.cpp.
References coeur::addMesh(), staticMesh::getNode(), staticMesh::init(), listStatic, base::log(), and base::mycore.
Referenced by init().
int lieu::close | ( | ) | [virtual] |
Close the base.
Close the log and put base::initialize to false
Reimplemented from base.
Definition at line 159 of file lieu.cpp.
References listAction, listStatic, and base::log().
Referenced by coeur::close(), and coeur::loadLieu().
actionMesh * lieu::getActionMesh | ( | ISceneNode * | node | ) |
Definition at line 239 of file lieu.cpp.
References listAction.
actionMesh * lieu::getActionMesh | ( | int | id | ) |
Definition at line 229 of file lieu.cpp.
References listAction.
Referenced by coeur::getActionMesh().
staticMesh * lieu::getStaticMeshFromId | ( | int | id | ) |
Definition at line 219 of file lieu.cpp.
References listStatic.
int lieu::init | ( | int | i, | |
coeur * | c, | |||
IXMLReader * | xmlLieu | |||
) |
Definition at line 15 of file lieu.cpp.
References addAnimateMesh(), coeur::addLight(), addObservationMesh(), addPrendreMesh(), addStaticMesh(), staticMesh::getNode(), coeur::getTexture(), listAction, listStatic, base::log(), base::mycore, and coeur::setSkyBox().
Referenced by coeur::loadLieu().
int lieu::update | ( | ) | [virtual] |
std::vector<actionMesh*>* lieu::listAction [private] |
Definition at line 24 of file lieu.h.
Referenced by addAnimateMesh(), addObservationMesh(), addPrendreMesh(), close(), getActionMesh(), init(), lieu(), and ~lieu().
std::vector<staticMesh*>* lieu::listStatic [private] |
Definition at line 23 of file lieu.h.
Referenced by addStaticMesh(), close(), getStaticMeshFromId(), init(), lieu(), and ~lieu().