client.h
上传用户:royluo
上传日期:2007-01-05
资源大小:1584k
文件大小:2k
源码类别:

游戏

开发平台:

Visual C++

  1. /*****************************************************************************
  2. *                                                                             
  3. *   Client.h
  4. *                                                                             
  5. *   Electrical Engineering Faculty - Software Lab                             
  6. *   Spring semester 1998                                                      
  7. *                                                                             
  8. *   Tanks game                                                                
  9. *                                                                             
  10. *   Module description: Interface for the client module of the communication
  11. *                       manager.
  12. *                       
  13. *                                                                             
  14. *   Authors: Eran Yariv - 28484475                                           
  15. *            Moshe Zur  - 24070856                                           
  16. *                                                                            
  17. *                                                                            
  18. *   Date: 23/09/98                                                           
  19. *                                                                            
  20. ******************************************************************************/
  21. #ifndef _CLIENT_H_
  22. #define _CLIENT_H_
  23. #include "CommManager.h"
  24. class CClient
  25. {
  26. public:
  27.     CClient(CCommManager &CommManager);
  28.     ~CClient();
  29.     void HandleMessage();
  30.     BOOL WaitForGameProperties();
  31. private:
  32.     void CopyManouverSet();
  33.     CCommManager  & m_CommManager;          // Alias to the comm. manager
  34.     CMsgQueue     & m_IncomingMsgQ;         // Alias to the incoming msg queue
  35.     CGameManager  & m_GameManager;          // Alias to the local game manager
  36.     CCommMessage&   m_Message;
  37.     HANDLE          m_hAddLocalTankEvent;
  38.     HANDLE          m_hAddBoardEvent;
  39.     HANDLE          m_hHostIDEvent;
  40. };
  41. #endif