PageRenderTime 46ms CodeModel.GetById 38ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/TGame/TCommon/Move/EvtMove.h

http://awoe.googlecode.com/
C++ Header | 36 lines | 16 code | 8 blank | 12 comment | 0 complexity | 036155bd408ef4a1942846532b2a6d56 MD5 | raw file
 1///////////////////////////////////////////////////////////////////////////////////////////////////
 2// EvtMove.h
 3// 2010?1?22?
 4// Copyright ?2007, 2010, 8DWorld, Inc. All rights reserved.
 5//
 6// 
 7///////////////////////////////////////////////////////////////////////////////////////////////////
 8
 9#ifndef EVTGENERAL_H
10#define EVTGENERAL_H
11
12#include "Event/EvtImpT.h"
13#include "Event/EvtDefinition.h"
14
15
16enum EventMove
17{
18	EVT_Move,				//	event to notify the gene master to move to a specific point
19							//	the gene will finished the whole move procedure.
20
21	EVT_Stop,				//	event to notify the gene to stop it's master unit to idle or freeze state.
22							//	argX == 0, to idle
23							//	argX != 0, to freeze, in which state the master unit can't move any more,
24							//	argY is used to calculate how many the gene the unit will be in the freeze state, 
25							//	argY == 0, means freeze forever, until some other event came to change to anther state.
26	EVT_MoveTo,
27};
28
29
30class TCOM_API EvtMove : public EvtImpT<Event::GID_EntityMovement>
31{
32public:
33	EvtMove(int nType , int nArgX = 0, int nArgY = 0, int nArgZ = 0);
34};
35
36#endif // EVTGENERAL_H