/TGame/TCommon/Entity/EntityDefinition.h
http://awoe.googlecode.com/ · C Header · 70 lines · 53 code · 13 blank · 4 comment · 0 complexity · a8f928e0d9ae0f47ad7cc9caf5f18d43 MD5 · raw file
- #ifndef __ENTITY_DEFINITION___
- #define __ENTITY_DEFINITION___
-
- namespace Entity
- {
- enum GlobalState
- {
- gst_Login,
- gst_Idle,
- gst_Busy,
- gst_Talking,
- gst_Trading,
- };
-
- enum EntityType
- {
- ett_Base,
- ett_Player,
- ett_Role,
- ett_NPC,
- ett_Monster,
- ett_Static,
- ett_Destructible,
- ett_Login,
- };
-
- // entity attribute
- enum
- {
- ETT_ATTR_BEGIN = -1,
-
- //equipment slot
- ESLOT_BEGIN = 0,
- ESLOT_HEAD = 1,
- ESLOT_BODY = 2,
- ESLOT_LEG = 3,
- ESLOT_FOOT = 4,
- ESLOT_WEAPON = 5,
- ESLOT_RING = 6,
- ESLOT_NECKLACE = 7,
- ESLOT_END,
-
- //common attr
- COMM_ATTR_BEGIN,
- ATTR_HEADPIC,
- COMM_ATTR_END,
-
- ATTR_EXP,
- ATTR_ELVL, //equipment level
-
-
- //player(EntityP) only
- ATTR_EP_BEGIN = 100,
-
- ATTR_GENDER,
- ATTR_CID, //country id
- ATTR_DID, //district id
- ATTR_SID, //scene id
- ATTR_RMB,
- ATTR_MONEY,
-
-
- ETT_SESSION_ID = 200,
- ETT_PLAYER_ID = 201,
-
- ETT_ATTR_END,
- };
- }
- #endif