PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 9#ifndef GESnare_H
10#define GESnare_H
11
12#include "GEStatus.h"
13
14
15
16/** 
17*	GESnare provide ability to maintain a durable state.
18*	when attached it call a state responser : state enter, 
19*	when detached it call a state responser : state exit, 
20*
21*/
22class TCOM_API  GESnare : public GEStatus
23{
24public:
25    GESnare();
26	// 
27	//	Fire when the gene is attached on a unit. just like unit enter the state.
28	//
29	virtual bool onAttach();
30
31	// 
32	//	Fire when the gene is attached on a unit. just like unit enter the state.
33	//
34	virtual bool onDetach();
35};
36
37
38#endif // GESnare_H