PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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