/TGame/TCommon/Combat/States/CombatState_Casting.h

http://awoe.googlecode.com/ · C Header · 43 lines · 16 code · 9 blank · 18 comment · 0 complexity · 4d0a6acd1b618143b693fb1600d3c3d7 MD5 · raw file

  1. #ifndef CombatSysState_Casting_H
  2. #define CombatSysState_Casting_H
  3. #include "CombatState.h"
  4. /*
  5. *
  6. * CombatState Casting
  7. *
  8. * state Casting: in combat, casting a spell on its target
  9. */
  10. class TCOM_API CombatState_Casting : public ICombatState
  11. {
  12. public:
  13. CombatState_Casting(void);
  14. virtual ~CombatState_Casting();
  15. //
  16. // Fire when enter a new state
  17. //
  18. virtual void enter();
  19. //
  20. // Fire just before leaving a state
  21. //
  22. virtual void leave();
  23. //
  24. // update in current state
  25. //
  26. virtual bool update(int nElapse);
  27. //
  28. // onEvent callback in current state
  29. //
  30. virtual void onEvent(IEvt& evt);
  31. protected:
  32. bool m_bCastedOut;// Whether my count of casting time it out
  33. };
  34. #endif