/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. #ifndef EVTGENERAL_H
  9. #define EVTGENERAL_H
  10. #include "Event/EvtImpT.h"
  11. #include "Event/EvtDefinition.h"
  12. enum EventMove
  13. {
  14. EVT_Move, // event to notify the gene master to move to a specific point
  15. // the gene will finished the whole move procedure.
  16. EVT_Stop, // event to notify the gene to stop it's master unit to idle or freeze state.
  17. // argX == 0, to idle
  18. // argX != 0, to freeze, in which state the master unit can't move any more,
  19. // argY is used to calculate how many the gene the unit will be in the freeze state,
  20. // argY == 0, means freeze forever, until some other event came to change to anther state.
  21. EVT_MoveTo,
  22. };
  23. class TCOM_API EvtMove : public EvtImpT<Event::GID_EntityMovement>
  24. {
  25. public:
  26. EvtMove(int nType , int nArgX = 0, int nArgY = 0, int nArgZ = 0);
  27. };
  28. #endif // EVTGENERAL_H