MenuLoadOldPlay.h
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:2k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. // MenuLoadOldPlay.h: interface for the CMenuLoadOldPlay class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MENULOADOLDPLAY_H__65594B91_5A0A_11D3_BA84_0000E8A021D8__INCLUDED_)
  5. #define AFX_MENULOADOLDPLAY_H__65594B91_5A0A_11D3_BA84_0000E8A021D8__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. //add header file
  10. #include "wgsCMessageList.h"
  11. #include "wgscommon.h"
  12. //end
  13. class CMenuLoadOldPlay  
  14. {
  15. public:
  16. HRESULT Draw2DSetup();
  17. void PrepareOldPlay();
  18. HRESULT DrawAllMenuBottonElement();
  19. HRESULT DrawOldPlayeName();
  20. void LoadPlayerOnLButtonDown(POINT Pos);
  21. void LoadPlayerOnLButtonUp(POINT Pos);
  22. void LoadPlayerOnRButtonDown(POINT Pos);
  23. void LoadPlayerOnMouseMove(POINT Pos);
  24. BOOL UsreLoadOldPlayerSend();
  25. BOOL UsreLoadOldPlayerReceive();
  26. CMenuLoadOldPlay();
  27. virtual ~CMenuLoadOldPlay();
  28. public:
  29. BOOL bWaittingConnect;
  30. BOOL bShowMsg;
  31. BOOL bStatGame;
  32. BOOL bCreateNewPlay;
  33. BOOL bBackUp;
  34. BOOL bPlayer0;
  35. BOOL bPlayer1;
  36. BOOL bPlayer2;
  37. BOOL bPlayer3;
  38. BOOL bPlayer4;
  39. BOOL bPlayerState0;
  40. BOOL bPlayerState1;
  41. BOOL bPlayerState2;
  42. BOOL bPlayerState3;
  43. BOOL bPlayerState4;
  44. //add load play parameter
  45. RECT rcBulletin;
  46. RECT rcDeletePlayButton;
  47. RECT rcDeletePlayButtonSource;
  48. BOOL bDeletePlay;
  49. CMessageList messlistBulletin;
  50. void AddMessage(LPTSTR lpstr){
  51. messlistBulletin.AddMessageList(lpstr);}
  52. void InitiateCName(int nPlayer,LPCTSTR lpstrCName){
  53. m_CName[nPlayer]=lpstrCName;}
  54. void InitiateEName(int nPlayer,LPCTSTR lpstrEName){
  55. m_EName[nPlayer]=lpstrEName;}
  56. void InitiatePassword(int nPlayer,LPCTSTR lpstrPassword){
  57. m_Password[nPlayer]=lpstrPassword;}
  58. void SetNumPlayer(int iNum){nHaveUsed=iNum;}
  59. int  GetNumPlayer(){return nHaveUsed;}
  60. void DeletePlayer();
  61. //end
  62. RECT rcStatGameButton;
  63. RECT rcCreateNewPlayButton;
  64. RECT rcBackUpButton;
  65. RECT rcStatGameButtonSource;
  66. RECT rcCreateNewPlayButtonSource;
  67. RECT rcBackUpButtonSource;
  68. RECT rcPlayerPos0;
  69. RECT rcPlayerPos1;
  70. RECT rcPlayerPos2;
  71. RECT rcPlayerPos3;
  72. RECT rcPlayerPos4;
  73. RECT rcPlayerPosSource;
  74. RECT rcMainSurfaceSource;
  75. int nHaveUsed;
  76. CString m_CName[5];
  77. CString m_EName[5];
  78. CString m_Password[5];
  79. };
  80. #endif // !defined(AFX_MENULOADOLDPLAY_H__65594B91_5A0A_11D3_BA84_0000E8A021D8__INCLUDED_)