/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

  1. #ifndef __ENTITY_DEFINITION___
  2. #define __ENTITY_DEFINITION___
  3. namespace Entity
  4. {
  5. enum GlobalState
  6. {
  7. gst_Login,
  8. gst_Idle,
  9. gst_Busy,
  10. gst_Talking,
  11. gst_Trading,
  12. };
  13. enum EntityType
  14. {
  15. ett_Base,
  16. ett_Player,
  17. ett_Role,
  18. ett_NPC,
  19. ett_Monster,
  20. ett_Static,
  21. ett_Destructible,
  22. ett_Login,
  23. };
  24. // entity attribute
  25. enum
  26. {
  27. ETT_ATTR_BEGIN = -1,
  28. //equipment slot
  29. ESLOT_BEGIN = 0,
  30. ESLOT_HEAD = 1,
  31. ESLOT_BODY = 2,
  32. ESLOT_LEG = 3,
  33. ESLOT_FOOT = 4,
  34. ESLOT_WEAPON = 5,
  35. ESLOT_RING = 6,
  36. ESLOT_NECKLACE = 7,
  37. ESLOT_END,
  38. //common attr
  39. COMM_ATTR_BEGIN,
  40. ATTR_HEADPIC,
  41. COMM_ATTR_END,
  42. ATTR_EXP,
  43. ATTR_ELVL, //equipment level
  44. //player(EntityP) only
  45. ATTR_EP_BEGIN = 100,
  46. ATTR_GENDER,
  47. ATTR_CID, //country id
  48. ATTR_DID, //district id
  49. ATTR_SID, //scene id
  50. ATTR_RMB,
  51. ATTR_MONEY,
  52. ETT_SESSION_ID = 200,
  53. ETT_PLAYER_ID = 201,
  54. ETT_ATTR_END,
  55. };
  56. }
  57. #endif