/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
- #ifndef CombatSysState_Casting_H
- #define CombatSysState_Casting_H
-
- #include "CombatState.h"
-
- /*
- *
- * CombatState Casting
- *
- * state Casting: in combat, casting a spell on its target
- */
- class TCOM_API CombatState_Casting : public ICombatState
- {
- public:
- CombatState_Casting(void);
- virtual ~CombatState_Casting();
- //
- // Fire when enter a new state
- //
- virtual void enter();
-
- //
- // Fire just before leaving a state
- //
- virtual void leave();
-
- //
- // update in current state
- //
- virtual bool update(int nElapse);
-
- //
- // onEvent callback in current state
- //
- virtual void onEvent(IEvt& evt);
- protected:
- bool m_bCastedOut;// Whether my count of casting time it out
- };
-
-
- #endif