MenuLoadOldPlay.h
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:2k
- // MenuLoadOldPlay.h: interface for the CMenuLoadOldPlay class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MENULOADOLDPLAY_H__65594B91_5A0A_11D3_BA84_0000E8A021D8__INCLUDED_)
- #define AFX_MENULOADOLDPLAY_H__65594B91_5A0A_11D3_BA84_0000E8A021D8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //add header file
- #include "wgsCMessageList.h"
- #include "wgscommon.h"
- //end
- class CMenuLoadOldPlay
- {
- public:
- HRESULT Draw2DSetup();
- void PrepareOldPlay();
- HRESULT DrawAllMenuBottonElement();
- HRESULT DrawOldPlayeName();
- void LoadPlayerOnLButtonDown(POINT Pos);
- void LoadPlayerOnLButtonUp(POINT Pos);
- void LoadPlayerOnRButtonDown(POINT Pos);
- void LoadPlayerOnMouseMove(POINT Pos);
- BOOL UsreLoadOldPlayerSend();
- BOOL UsreLoadOldPlayerReceive();
- CMenuLoadOldPlay();
- virtual ~CMenuLoadOldPlay();
- public:
- BOOL bWaittingConnect;
- BOOL bShowMsg;
- BOOL bStatGame;
- BOOL bCreateNewPlay;
- BOOL bBackUp;
- BOOL bPlayer0;
- BOOL bPlayer1;
- BOOL bPlayer2;
- BOOL bPlayer3;
- BOOL bPlayer4;
- BOOL bPlayerState0;
- BOOL bPlayerState1;
- BOOL bPlayerState2;
- BOOL bPlayerState3;
- BOOL bPlayerState4;
- //add load play parameter
- RECT rcBulletin;
- RECT rcDeletePlayButton;
- RECT rcDeletePlayButtonSource;
- BOOL bDeletePlay;
- CMessageList messlistBulletin;
- void AddMessage(LPTSTR lpstr){
- messlistBulletin.AddMessageList(lpstr);}
- void InitiateCName(int nPlayer,LPCTSTR lpstrCName){
- m_CName[nPlayer]=lpstrCName;}
- void InitiateEName(int nPlayer,LPCTSTR lpstrEName){
- m_EName[nPlayer]=lpstrEName;}
- void InitiatePassword(int nPlayer,LPCTSTR lpstrPassword){
- m_Password[nPlayer]=lpstrPassword;}
- void SetNumPlayer(int iNum){nHaveUsed=iNum;}
- int GetNumPlayer(){return nHaveUsed;}
- void DeletePlayer();
- //end
- RECT rcStatGameButton;
- RECT rcCreateNewPlayButton;
- RECT rcBackUpButton;
- RECT rcStatGameButtonSource;
- RECT rcCreateNewPlayButtonSource;
- RECT rcBackUpButtonSource;
- RECT rcPlayerPos0;
- RECT rcPlayerPos1;
- RECT rcPlayerPos2;
- RECT rcPlayerPos3;
- RECT rcPlayerPos4;
-
- RECT rcPlayerPosSource;
- RECT rcMainSurfaceSource;
- int nHaveUsed;
- CString m_CName[5];
- CString m_EName[5];
- CString m_Password[5];
- };
- #endif // !defined(AFX_MENULOADOLDPLAY_H__65594B91_5A0A_11D3_BA84_0000E8A021D8__INCLUDED_)