interface Class Reference

#include <interface.h>

Inheritance diagram for interface:
base

List of all members.

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)
inventairegetInventaire (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.

Detailed Description

Definition at line 2 of file interface.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

int interface::addInventaire ( int  i,
stringc  path,
int  v,
INVENTAIRE_POS  p,
stringc  pathvoid 
)
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.

References inv, and v.

Referenced by BOOST_PYTHON_MODULE(), init(), and update().

int interface::close (  )  [virtual]

Close the base.

Close the log and put base::initialize to false

Returns:
logger::closeFile()

Reimplemented from base.

Definition at line 184 of file interface.cpp.

References inv, and base::log().

Referenced by coeur::close().

int interface::getFreePlace (  )  [private]

Definition at line 356 of file interface.cpp.

References inv.

Referenced by OnEvent().

inventaire* interface::getInventaire ( int   ) 
int interface::init ( coeur c,
IGUIEnvironment *  e,
IXMLReader *  xmlInterface,
bool  cl = false 
)
bool interface::OnEvent ( const SEvent &  event  ) 
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]

Member Data Documentation

bool interface::classic [private]

Definition at line 62 of file interface.h.

Referenced by init(), and update().

stringc interface::curAction [private]

Definition at line 38 of file interface.h.

Referenced by init(), and update().

stringc interface::curDefault [private]

Definition at line 35 of file interface.h.

Referenced by init(), and update().

stringc interface::curLook [private]

Definition at line 37 of file interface.h.

Referenced by init(), and update().

stringc interface::curTake [private]

Definition at line 36 of file interface.h.

Referenced by init(), and update().

IParticleEmitter* interface::emCur [private]

The particle system for the cursor.

Definition at line 68 of file interface.h.

Referenced by init(), and update().

IGUIEnvironment* interface::env [private]

Definition at line 33 of file interface.h.

Referenced by addInventaire(), init(), and update().

Definition at line 54 of file interface.h.

Referenced by init(), OnEvent(), and update().

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]
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.

Referenced by init(), and update().

IParticleSystemSceneNode* interface::psCur [private]

The particle system for the cursor.

Definition at line 65 of file interface.h.

Referenced by init(), and update().

int interface::pselectedInv [private]

Definition at line 51 of file interface.h.

Referenced by init(), and OnEvent().

int interface::pselectedItem [private]

Definition at line 52 of file interface.h.

Referenced by init(), and OnEvent().

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.

Referenced by init(), and OnEvent().

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.

Referenced by init(), speak(), and update().

bool interface::v [private]

Definition at line 60 of file interface.h.

Referenced by afficherInventaire(), and update().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on Wed Sep 9 18:20:15 2009 for The Merry Turnip by  doxygen 1.6.1