00001 #ifndef __GAMECLIENT_H__ 00002 #define __GAMECLIENT_H__ 00003 00004 #include "Common/Game.h" 00005 #include "Mod/ModFactory.h" 00006 #include "Client/NetClient.h" 00007 00008 class KInterface; 00009 class KClientGameManager; 00010 class KProfileBank; 00011 class KMod; 00012 00013 //--------------------------------------------------------------------------------------------------------------------- 00014 class KGameClient : public KGame 00015 { 00016 protected: 00017 char* m_pName; 00018 KInterface* m_pInterface; 00019 KClientGameManager* m_pClientGameManager; 00020 KNetClient m_Net; 00021 KProfileBank* m_pProfileBank; 00022 KMod* m_pMod; 00023 KModFactory m_ModFactory; 00024 00025 bool PlayIntro(); 00026 00027 static LRESULT CALLBACK WindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); 00028 static void CommandConnect( KStr Argument, void* pContext ); 00029 static void CommandDisconnect( KStr Argument, void* pContext ); 00030 00031 public: 00032 KGameClient( HINSTANCE hInstance ); 00033 virtual ~KGameClient(); 00034 00035 virtual bool Init(); 00036 virtual void Run(); 00037 virtual void End(); 00038 00039 char* GetpName() { return m_pName; } 00040 KInterface* GetInterface() { return m_pInterface; } 00041 KNetClient& GetNet() { return m_Net; } 00042 KClientGameManager* GetClientGameManager() { return m_pClientGameManager; } 00043 KProfileBank* GetpProfileBank() { return m_pProfileBank; } 00044 }; 00045 00046 //extern KGameClient* g_pGameClient; 00047 00048 #endif __GAMECLIENT_H__
1.5.1-p1