/TGame/TCommon/Entity/EvtEntity.h

http://awoe.googlecode.com/ · C Header · 61 lines · 46 code · 12 blank · 3 comment · 0 complexity · 9ea69b1014f995c45d95f4df11f5554a MD5 · raw file

  1. #ifndef __EVENTS_FOR_ENTITY__
  2. #define __EVENTS_FOR_ENTITY__
  3. #include "Event/EvtImpT.h"
  4. #include "Event/EvtDefinition.h"
  5. class EvtEntityPC : public EvtImpT<Event::GID_EntityPropChange>
  6. {
  7. public:
  8. enum TheProperties
  9. {
  10. //
  11. // entity common properties
  12. eProp_Position,
  13. eProp_Direction,
  14. eProp_Level,
  15. eProp_Name,
  16. eProp_Visible,
  17. // entity combat properties
  18. eProp_CombatHP,
  19. eProp_CombatMP,
  20. eProp_CombatLevelup,
  21. eProp_CombatMPBottle,
  22. eProp_CombatHPBottle,
  23. eProp_CombatStatus,
  24. };
  25. EvtEntityPC(int nID, int nArgX = 0, int nArgY = 0, int nArgZ = 0)
  26. :EvtImpT<Event::GID_EntityPropChange>(nID, nArgX, nArgY, nArgZ)
  27. {
  28. ;
  29. }
  30. };
  31. class EvtEntitySC : public EvtImpT<Event::GID_EntityStateChange>
  32. {
  33. public:
  34. enum StateOpeartions
  35. {
  36. op_Null,
  37. op_DoIt,
  38. op_StopIt,
  39. IDT_Effect,
  40. IDT_Animation,
  41. IDT_Sound,
  42. };
  43. EvtEntitySC(int nStateID, int nOperation = 0, int nIDTanslate = 0, int nArgZ = 0)
  44. :EvtImpT<Event::GID_EntityStateChange>(nStateID, nOperation, nIDTanslate, nArgZ)
  45. {
  46. ;
  47. }
  48. };
  49. #endif