inventaire Class Reference

#include <inventaire.h>

Inheritance diagram for inventaire:
base

List of all members.

Public Member Functions

 inventaire ()
 ~inventaire ()
int init (int, coeur *, IGUIEnvironment *, stringc, rect< s32 >, int, INVENTAIRE_POS, stringc)
int update ()
 Updating(should be call on each loop).
int close ()
 Close the base.
int afficher (bool)
IGUIImage * getImage ()
int addItem (int n, item)
int removeItem (int)
int getNumItem (const position2d< s32 >)
item getItem (int)
item getItem (const position2d< s32 >)
int getFreePlace ()
bool OnEvent (const SEvent &)

Private Attributes

IGUIEnvironment * env
int vtot
int volume
itemit
IGUIImage ** images
int maxItem
INVENTAIRE_POS position
IGUIImage * image

Detailed Description

Definition at line 10 of file inventaire.h.


Constructor & Destructor Documentation

inventaire::inventaire (  ) 

Definition at line 8 of file inventaire.cpp.

inventaire::~inventaire (  ) 

Definition at line 13 of file inventaire.cpp.


Member Function Documentation

int inventaire::addItem ( int  n,
item  m 
)
int inventaire::afficher ( bool  a  ) 

Definition at line 96 of file inventaire.cpp.

References image.

Referenced by init().

int inventaire::close (  )  [virtual]

Close the base.

Close the log and put base::initialize to false

Returns:
logger::closeFile()

Reimplemented from base.

Definition at line 90 of file inventaire.cpp.

int inventaire::getFreePlace (  ) 

Definition at line 145 of file inventaire.cpp.

References base::getId(), it, and maxItem.

IGUIImage * inventaire::getImage (  ) 

Definition at line 102 of file inventaire.cpp.

References image.

item inventaire::getItem ( const position2d< s32 >  pos  ) 

Definition at line 140 of file inventaire.cpp.

References getNumItem(), and it.

item inventaire::getItem ( int  n  ) 

Definition at line 133 of file inventaire.cpp.

References it, and maxItem.

int inventaire::getNumItem ( const position2d< s32 >  pos  ) 

Definition at line 125 of file inventaire.cpp.

References images, and maxItem.

Referenced by getItem().

int inventaire::init ( int  i,
coeur c,
IGUIEnvironment *  e,
stringc  path,
rect< s32 >  pos,
int  v,
INVENTAIRE_POS  p,
stringc  pathvoid 
)
bool inventaire::OnEvent ( const SEvent &  event  ) 

Definition at line 153 of file inventaire.cpp.

int inventaire::removeItem ( int  n  ) 

Definition at line 116 of file inventaire.cpp.

References base::getId(), images, it, and maxItem.

int inventaire::update (  )  [virtual]

Updating(should be call on each loop).

Does nothing

Returns:
Always 0

Reimplemented from base.

Definition at line 85 of file inventaire.cpp.


Member Data Documentation

IGUIEnvironment* inventaire::env [private]

Definition at line 35 of file inventaire.h.

Referenced by init().

IGUIImage* inventaire::image [private]

Definition at line 46 of file inventaire.h.

Referenced by afficher(), getImage(), and init().

IGUIImage** inventaire::images [private]

Definition at line 41 of file inventaire.h.

Referenced by addItem(), getNumItem(), init(), and removeItem().

item* inventaire::it [private]

Definition at line 40 of file inventaire.h.

Referenced by addItem(), getFreePlace(), getItem(), init(), and removeItem().

int inventaire::maxItem [private]

Definition at line 42 of file inventaire.h.

Referenced by addItem(), getFreePlace(), getItem(), getNumItem(), init(), and removeItem().

Definition at line 44 of file inventaire.h.

Referenced by init().

int inventaire::volume [private]

Definition at line 38 of file inventaire.h.

Referenced by init().

int inventaire::vtot [private]

Definition at line 37 of file inventaire.h.

Referenced by init().


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:16 2009 for The Merry Turnip by  doxygen 1.6.1