#include <interface.h>
Public Member Functions | |
interface () | |
~interface () | |
int | init (coeur *, IGUIEnvironment *, IXMLReader *, bool=false) |
int | update () |
Updating(should be call on each loop). | |
int | close () |
Close the base. | |
int | setImage (stringc) |
int | afficherInventaire (bool) |
int | setImagePosition (position2d< s32 >) |
int | addItemInventaire (item) |
int | addInventaire (int, stringc, int, INVENTAIRE_POS, stringc) |
inventaire * | getInventaire (int) |
bool | OnEvent (const SEvent &) |
Private Member Functions | |
int | speak (localItem *) |
int | getFreePlace () |
Private Attributes | |
IGUIEnvironment * | env |
stringc | curDefault |
stringc | curTake |
stringc | curLook |
stringc | curAction |
stringc | soundFind |
IGUIFont * | mainFont |
IGUIImage * | image |
IGUIStaticText * | txt |
int | selectedInv |
int | selectedItem |
int | pselectedInv |
int | pselectedItem |
item | handle |
std::vector< inventaire * > * | inv |
u32 | time |
bool | v |
bool | classic |
IParticleSystemSceneNode * | psCur |
The particle system for the cursor. | |
IParticleEmitter * | emCur |
The particle system for the cursor. | |
IParticleAttractionAffector * | pafCur |
The particle affector for the cursor. |
Definition at line 2 of file interface.h.
interface::interface | ( | ) |
/todo refaire inventaire pour mettre un nombre infini d'item /todo Afficher inventaire en fonction taille(redimensionner) /todo Check sound really launched /todo Load the texture at the beginning in order not to slow down the game
Definition at line 8 of file interface.cpp.
References inv.
interface::~interface | ( | ) |
Definition at line 13 of file interface.cpp.
References inv.
int interface::addInventaire | ( | int | i, | |
stringc | path, | |||
int | v, | |||
INVENTAIRE_POS | p, | |||
stringc | pathvoid | |||
) |
Definition at line 213 of file interface.cpp.
References env, coeur::getDim(), inventaire::init(), inv, INVENTAIRE_POS_BAS, INVENTAIRE_POS_DROITE, INVENTAIRE_POS_GAUCHE, INVENTAIRE_POS_HAUT, base::log(), and base::mycore.
Referenced by init().
int interface::addItemInventaire | ( | item | m | ) |
Definition at line 244 of file interface.cpp.
References item::getId(), inv, base::log(), selectedInv, and selectedItem.
Referenced by BOOST_PYTHON_MODULE(), and OnEvent().
int interface::afficherInventaire | ( | bool | a | ) |
Definition at line 203 of file interface.cpp.
Referenced by BOOST_PYTHON_MODULE(), init(), and update().
int interface::close | ( | ) | [virtual] |
Close the base.
Close the log and put base::initialize to false
Reimplemented from base.
Definition at line 184 of file interface.cpp.
References inv, and base::log().
Referenced by coeur::close().
int interface::getFreePlace | ( | ) | [private] |
inventaire* interface::getInventaire | ( | int | ) |
int interface::init | ( | coeur * | c, | |
IGUIEnvironment * | e, | |||
IXMLReader * | xmlInterface, | |||
bool | cl = false | |||
) |
Definition at line 18 of file interface.cpp.
References addInventaire(), coeur::addParticleSystem(), afficherInventaire(), classic, curAction, curDefault, curLook, curTake, emCur, env, coeur::getDim(), coeur::getTexture(), handle, image, inv, base::log(), mainFont, base::mycore, pafCur, psCur, pselectedInv, pselectedItem, selectedInv, selectedItem, soundFind, and txt.
Referenced by coeur::init().
bool interface::OnEvent | ( | const SEvent & | event | ) |
Definition at line 251 of file interface.cpp.
References ACTION_ANIMATE, ACTION_OBSERVER, ACTION_PRENDRE, addItemInventaire(), coeur::anim(), actionMesh::getAction(), animateMesh::getAnim(), animateMesh::getBegin(), item::getCombi(), actionMesh::getCombi(), coeur::getCombinaison(), item::getCombiResult(), animateMesh::getEnd(), getFreePlace(), staticMesh::getId(), item::getId(), coeur::getItem(), staticMesh::getNode(), coeur::getObservationItem(), coeur::getObservationMesh(), coeur::getSelectedAction(), handle, inv, base::log(), base::mycore, coeur::play(), pselectedInv, pselectedItem, selectedInv, selectedItem, soundFind, and speak().
Referenced by coeur::OnEvent().
int interface::setImage | ( | stringc | tex | ) |
Definition at line 197 of file interface.cpp.
References coeur::getTexture(), image, and base::mycore.
Referenced by BOOST_PYTHON_MODULE(), and update().
int interface::setImagePosition | ( | position2d< s32 > | pos | ) |
Definition at line 238 of file interface.cpp.
References image.
Referenced by BOOST_PYTHON_MODULE(), and update().
int interface::speak | ( | localItem * | loc | ) | [private] |
Definition at line 366 of file interface.cpp.
References localItem::getPath(), localItem::getText(), coeur::getTime(), base::mycore, coeur::play(), time, and txt.
Referenced by OnEvent().
int interface::update | ( | ) | [virtual] |
Updating(should be call on each loop).
Does nothing
Reimplemented from base.
Definition at line 108 of file interface.cpp.
References ACTION_ANIMATE, ACTION_OBSERVER, ACTION_PRENDRE, afficherInventaire(), coeur::cam, classic, curAction, curDefault, curLook, curTake, emCur, env, actionMesh::getAction(), actionMesh::getColor(), coeur::getCurPos(), coeur::getDim(), item::getId(), staticMesh::getNode(), coeur::getSelectedAction(), item::getTexture(), handle, image, inv, base::mycore, pafCur, psCur, selectedInv, selectedItem, setImage(), setImagePosition(), coeur::smgr, txt, and v.
Referenced by coeur::update().
bool interface::classic [private] |
Definition at line 62 of file interface.h.
stringc interface::curAction [private] |
Definition at line 38 of file interface.h.
stringc interface::curDefault [private] |
Definition at line 35 of file interface.h.
stringc interface::curLook [private] |
Definition at line 37 of file interface.h.
stringc interface::curTake [private] |
Definition at line 36 of file interface.h.
IParticleEmitter* interface::emCur [private] |
The particle system for the cursor.
Definition at line 68 of file interface.h.
IGUIEnvironment* interface::env [private] |
Definition at line 33 of file interface.h.
Referenced by addInventaire(), init(), and update().
item interface::handle [private] |
Definition at line 54 of file interface.h.
IGUIImage* interface::image [private] |
Definition at line 44 of file interface.h.
Referenced by init(), setImage(), setImagePosition(), and update().
std::vector<inventaire*>* interface::inv [private] |
Definition at line 56 of file interface.h.
Referenced by addInventaire(), addItemInventaire(), afficherInventaire(), close(), getFreePlace(), init(), interface(), OnEvent(), update(), and ~interface().
IGUIFont* interface::mainFont [private] |
Definition at line 42 of file interface.h.
Referenced by init().
IParticleAttractionAffector* interface::pafCur [private] |
The particle affector for the cursor.
Definition at line 71 of file interface.h.
IParticleSystemSceneNode* interface::psCur [private] |
The particle system for the cursor.
Definition at line 65 of file interface.h.
int interface::pselectedInv [private] |
Definition at line 51 of file interface.h.
int interface::pselectedItem [private] |
Definition at line 52 of file interface.h.
int interface::selectedInv [private] |
Definition at line 48 of file interface.h.
Referenced by addItemInventaire(), init(), OnEvent(), and update().
int interface::selectedItem [private] |
Definition at line 49 of file interface.h.
Referenced by addItemInventaire(), init(), OnEvent(), and update().
stringc interface::soundFind [private] |
Definition at line 40 of file interface.h.
u32 interface::time [private] |
Definition at line 58 of file interface.h.
Referenced by speak().
IGUIStaticText* interface::txt [private] |
Definition at line 46 of file interface.h.
bool interface::v [private] |
Definition at line 60 of file interface.h.
Referenced by afficherInventaire(), and update().