PageRenderTime 39ms CodeModel.GetById 34ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/TGame/TServerMS/Message/MsgHandlerLgc.h

http://awoe.googlecode.com/
C++ Header | 47 lines | 34 code | 13 blank | 0 comment | 0 complexity | 2c86f506b696b5e4796667a7653c08d3 MD5 | raw file
 1#ifndef ___MSG_HANDLER_FOR_LOGIC__
 2#define ___MSG_HANDLER_FOR_LOGIC__
 3
 4
 5#include "Message/MsgHandlerImp.h"
 6#include "Entity/EntityManagerIf.h"
 7#include "Scene/SceneManagerIf.h"
 8#include "Player/PlayerData.h"
 9
10class Service;
11
12class  MsgHandlerInitDataLgc : public IMsgHandlerInitData
13{
14public:
15	MsgHandlerInitDataLgc(Service* SvcHost, Service* SvcLgc,Service* SvcDB) :wpSvcDB(SvcDB), wpSvcLgc(SvcLgc), wpSvcHost(SvcHost), wpPlayerDataMgr(NULL){}
16	Service*	wpSvcHost;
17	Service*	wpSvcDB;
18	Service*	wpSvcLgc;
19
20	IEntityManager*	wpEttMgrL;
21	IEntityManager* wpEttMgrW;
22	ISceneManager*	wpScnMgr;
23
24	PlayerDataManager*	wpPlayerDataMgr;
25};
26
27class  MsgHandlerLgc : public MsgHandlerImp
28{
29public:
30	MsgHandlerLgc();
31	~MsgHandlerLgc();
32
33	virtual bool initialize(IMsgHandlerInitData* data) ;
34
35	Service* getSvcHost() const;
36	Service* getSvcDB() const;
37	Service* getSvcLgc() const;
38protected:
39	Service*	m_wpSvcLgc;
40	Service*	m_wpSvcDB;
41	Service*	m_wpSvcHost;
42};
43
44
45
46
47#endif