📄 elsgame.h
字号:
// ElsGame.h: interface for the CElsGame class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ELSGAME_H__D062343F_1996_45E3_B7F9_F718D5434B33__INCLUDED_)
#define AFX_ELSGAME_H__D062343F_1996_45E3_B7F9_F718D5434B33__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "gamswnd.h"
#include "Els.h"
const int Xnum = 15;
const int Ynum = 21;
class CElsGame : public CGamsWnd
{
public:
DECLARE_DYNCREATE(CElsGame);
CElsGame();
virtual ~CElsGame();
public:
CEls* m_pEls;
CEls* m_pNext;
UINT m_nTimer;
int m_nRows;
int m_nPoint;
BOOL m_bStop;
int m_nTime;
int m_nTypeNum;
int m_nArray[Xnum][Ynum];
int m_nRowsHigh[Xnum];
BOOL m_bNew;
BOOL m_bAuto;
public:
void CreateNewEls();
void DrawEls(BOOL b = TRUE);
void DrawPoint(CPoint p, BOOL b = TRUE);
void CreateMemDC();
void DrawNext(BOOL b = TRUE);
void FormatInfo();
BOOL GetElsPosition(CEls &E);
void StopGame();
void SetJi(UINT nID);
void SetAuto();
protected:
CDC m_MemeryDC;
CDC m_MemeryDCNULL;
UINT GetMoveAble(int nType = 1);
UINT SetArray();
void ClearArray();
void StartGame();
void FormatArray();
protected:
//{{AFX_MSG(CSheGame)
afx_msg void OnTimer( UINT nIDEvent );
afx_msg void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );
afx_msg void OnPaint();
afx_msg void OnClose();
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_ELSGAME_H__D062343F_1996_45E3_B7F9_F718D5434B33__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -