/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
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // GESnare.h
- // 2010?1?20?
- // Copyright ?2007, 2010, 8DWorld, Inc. All rights reserved.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
-
- #ifndef GESnare_H
- #define GESnare_H
-
- #include "GEStatus.h"
-
-
-
- /**
- * GESnare provide ability to maintain a durable state.
- * when attached it call a state responser : state enter,
- * when detached it call a state responser : state exit,
- *
- */
- class TCOM_API GESnare : public GEStatus
- {
- public:
- GESnare();
- //
- // Fire when the gene is attached on a unit. just like unit enter the state.
- //
- virtual bool onAttach();
-
- //
- // Fire when the gene is attached on a unit. just like unit enter the state.
- //
- virtual bool onDetach();
- };
-
-
- #endif // GESnare_H