Browse CVS Repository
Annotation of /xoonips/AL/itemtype.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1 -
( hide annotations)
( download)
( as text)
Fri Jan 14 04:28:07 2005 UTC
(19 years, 2 months ago)
by youi
Branch: MAIN
File MIME type: text/x-chdr
initial version
| 1 |
youi |
1.1 |
/* |
| 2 |
|
|
* |
| 3 |
|
|
* $Revision$ |
| 4 |
|
|
* $Log$ |
| 5 |
|
|
* |
| 6 |
|
|
*/ |
| 7 |
|
|
#if !defined( ITEMTYPE_H ) |
| 8 |
|
|
#define ITEMTYPE_H |
| 9 |
|
|
|
| 10 |
|
|
#define XNP_ITEMTYPE_ITEMTYPE_LEN 30 |
| 11 |
|
|
|
| 12 |
|
|
typedef int itemop_t; |
| 13 |
|
|
typedef unsigned int itemtypeid_t; |
| 14 |
|
|
class itemtype{ |
| 15 |
|
|
public: |
| 16 |
|
|
itemtype(); |
| 17 |
|
|
~itemtype(); |
| 18 |
|
|
|
| 19 |
|
|
itemtypeid_t getItemTypeID() const; |
| 20 |
|
|
const char* getItemType() const; |
| 21 |
|
|
|
| 22 |
|
|
void setItemTypeID( itemtypeid_t x ); |
| 23 |
|
|
void setItemType( const char* x ); |
| 24 |
|
|
|
| 25 |
|
|
private: |
| 26 |
|
|
itemtypeid_t item_type_id; |
| 27 |
|
|
char item_type[ XNP_ITEMTYPE_ITEMTYPE_LEN + 1 ]; |
| 28 |
|
|
}; |
| 29 |
|
|
typedef itemtype itemtype_t; |
| 30 |
|
|
#endif |
|