/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
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // EvtMove.h
- // 2010?1?22?
- // Copyright ?2007, 2010, 8DWorld, Inc. All rights reserved.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
-
- #ifndef EVTGENERAL_H
- #define EVTGENERAL_H
-
- #include "Event/EvtImpT.h"
- #include "Event/EvtDefinition.h"
-
-
- enum EventMove
- {
- EVT_Move, // event to notify the gene master to move to a specific point
- // the gene will finished the whole move procedure.
-
- EVT_Stop, // event to notify the gene to stop it's master unit to idle or freeze state.
- // argX == 0, to idle
- // argX != 0, to freeze, in which state the master unit can't move any more,
- // argY is used to calculate how many the gene the unit will be in the freeze state,
- // argY == 0, means freeze forever, until some other event came to change to anther state.
- EVT_MoveTo,
- };
-
-
- class TCOM_API EvtMove : public EvtImpT<Event::GID_EntityMovement>
- {
- public:
- EvtMove(int nType , int nArgX = 0, int nArgY = 0, int nArgZ = 0);
- };
-
- #endif // EVTGENERAL_H