Item Class Reference

#include <item.hpp>

Inheritance diagram for Item:

Object Thing List of all members.

Public Member Functions

 Item (ItemClass *type, int amount)
ItemClassgetItemClass () const
int getAmount () const
virtual void update ()
 Updates the internal status.

Private Attributes

ItemClassmType
 Type of this thing.
unsigned char mAmount

Constructor & Destructor Documentation

Item::Item ItemClass type,
int  amount
[inline]
 

Definition at line 241 of file item.hpp.


Member Function Documentation

int Item::getAmount  )  const [inline]
 

Definition at line 248 of file item.hpp.

ItemClass* Item::getItemClass  )  const [inline]
 

Definition at line 245 of file item.hpp.

virtual void Item::update  )  [inline, virtual]
 

Updates the internal status.

Implements Thing.

Definition at line 251 of file item.hpp.


Member Data Documentation

unsigned char Item::mAmount [private]
 

Definition at line 255 of file item.hpp.

ItemClass* Item::mType [private]
 

Type of this thing.

Reimplemented from Thing.

Definition at line 254 of file item.hpp.


The documentation for this class was generated from the following file:
Generated on Fri Mar 30 15:39:18 2007 for TMW Server by  doxygen 1.3.9.1