PageRenderTime 21ms CodeModel.GetById 10ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

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