/TGame/TCommon/Gene/Status/GESnare.h

http://awoe.googlecode.com/ · C Header · 38 lines · 11 code · 8 blank · 19 comment · 0 complexity · 158a50cb2b0999f7ec432095400f6ca7 MD5 · raw file

  1. ///////////////////////////////////////////////////////////////////////////////////////////////////
  2. // GESnare.h
  3. // 2010?1?20?
  4. // Copyright ?2007, 2010, 8DWorld, Inc. All rights reserved.
  5. //
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////////////////////////
  8. #ifndef GESnare_H
  9. #define GESnare_H
  10. #include "GEStatus.h"
  11. /**
  12. * GESnare provide ability to maintain a durable state.
  13. * when attached it call a state responser : state enter,
  14. * when detached it call a state responser : state exit,
  15. *
  16. */
  17. class TCOM_API GESnare : public GEStatus
  18. {
  19. public:
  20. GESnare();
  21. //
  22. // Fire when the gene is attached on a unit. just like unit enter the state.
  23. //
  24. virtual bool onAttach();
  25. //
  26. // Fire when the gene is attached on a unit. just like unit enter the state.
  27. //
  28. virtual bool onDetach();
  29. };
  30. #endif // GESnare_H