PageRenderTime 22ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/TGame/TCommon/Entity/EntityDefinition.h

http://awoe.googlecode.com/
C++ Header | 70 lines | 53 code | 13 blank | 4 comment | 0 complexity | a8f928e0d9ae0f47ad7cc9caf5f18d43 MD5 | raw file
 1
 2#ifndef __ENTITY_DEFINITION___
 3#define __ENTITY_DEFINITION___
 4
 5namespace Entity
 6{
 7	enum GlobalState
 8	{
 9		gst_Login,
10		gst_Idle,
11		gst_Busy,
12		gst_Talking,
13		gst_Trading,
14	};
15
16	enum EntityType
17	{
18		ett_Base,
19		ett_Player,
20		ett_Role,
21		ett_NPC,
22		ett_Monster,
23		ett_Static,
24		ett_Destructible,
25		ett_Login,
26	};
27
28	//	entity attribute
29	enum
30	{
31		ETT_ATTR_BEGIN	=	-1,
32
33		//equipment slot
34		ESLOT_BEGIN		=	0,
35		ESLOT_HEAD		=	1,
36		ESLOT_BODY		=	2,
37		ESLOT_LEG		=	3,
38		ESLOT_FOOT		=	4,
39		ESLOT_WEAPON	=	5,
40		ESLOT_RING		=	6,
41		ESLOT_NECKLACE	=	7,
42		ESLOT_END,
43
44		//common attr
45		COMM_ATTR_BEGIN,
46		ATTR_HEADPIC,
47		COMM_ATTR_END,
48
49		ATTR_EXP,
50		ATTR_ELVL,		//equipment level
51
52
53		//player(EntityP) only
54		ATTR_EP_BEGIN	=	100,
55
56		ATTR_GENDER,
57		ATTR_CID,		//country id
58		ATTR_DID,		//district id
59		ATTR_SID,		//scene id
60		ATTR_RMB,
61		ATTR_MONEY,
62
63
64		ETT_SESSION_ID	=	200,
65		ETT_PLAYER_ID	=	201,
66
67		ETT_ATTR_END,
68	};
69}
70#endif