PageRenderTime 11ms CodeModel.GetById 7ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/TGame/TCommon/Combat/States/CombatState_Peace.h

http://awoe.googlecode.com/
C++ Header | 75 lines | 26 code | 13 blank | 36 comment | 0 complexity | e8aa8a307ccec4432590bb96b40cb296 MD5 | raw file
 1
 2#ifndef CombatSysState_Peace_H
 3#define CombatSysState_Peace_H
 4
 5#include "CombatState.h"
 6
 7/*
 8*
 9*	CombatState Peace
10*
11*	state Peace:		in combat, ready for casting a spell to its target
12*/
13class TCOM_API  CombatState_Peace : public ICombatState
14{
15public:
16	CombatState_Peace(void);
17	virtual ~CombatState_Peace();
18	// 
19	//	Fire when enter a new state
20	//
21	virtual void enter();
22
23	// 
24	//	Fire just before leaving a state
25	//
26	virtual void leave();
27
28	// 
29	//	update in current state
30	//
31	virtual bool update(int nElapse);
32
33	// 
34	//	onEvent callback in current state
35	//
36	virtual void onEvent(IEvt& evt);
37protected:
38};
39
40
41/*
42*
43*	CombatState Peace For Role
44*
45*	state Peace:		in combat, ready for casting a spell to its target
46*/
47class TCOM_API  CombatState_Peace_R : public CombatState_Peace
48{
49public:
50	CombatState_Peace_R(void);
51	virtual ~CombatState_Peace_R();
52	// 
53	//	Fire when enter a new state
54	//
55	virtual void enter();
56
57	// 
58	//	Fire just before leaving a state
59	//
60	virtual void leave();
61
62	// 
63	//	update in current state
64	//
65	virtual bool update(int nElapse);
66
67	// 
68	//	onEvent callback in current state
69	//
70	virtual void onEvent(IEvt& evt);
71protected:
72};
73
74
75#endif