PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/TGame/TCommon/Gene/GeneHostImp.h

http://awoe.googlecode.com/
C++ Header | 30 lines | 14 code | 5 blank | 11 comment | 0 complexity | 4fdf3e3a3b6599c9be6161a5d51d5128 MD5 | raw file
 1#ifndef		__GENE_HOST_EMPTY_IMP__
 2#define		__GENE_HOST_EMPTY_IMP__
 3
 4#include "GeneHostIf.h"
 5
 6class TCOM_API  GeneHostImp : public IGeneHost
 7{
 8public:
 9	//
10	//	add/remove gene to gene host
11	//	Note that gene is organized by group id in gene
12	//
13	virtual bool addGene(IGeneCreateData* pDynamicData);
14	virtual	bool addGene(IGene*);
15	virtual bool rmvGene(int nGrpID);
16
17	//
18	//	register/unregister an gene event to gene host
19	//	gene host will broadcast gene event only to those who has already registered it
20	//
21	virtual bool	addRegEvt(int nEvtGrp, int nEvt, IGene* pGene);
22	virtual bool	rmvRegEvt(int nEvtGrp, int nEvt, IGene* pGene);
23
24	//
25	//	fire an gene event to all registered gene on current host
26	//	
27	virtual bool onEvent(IEvt& evt);
28};
29
30#endif