📄 russiangamedlg.h
字号:
// RussianGameDlg.h : header file
//
#if !defined(AFX_RUSSIANGAMEDLG_H__83A0D65B_BE0A_4E6F_ABD7_61C0D06C5A9F__INCLUDED_)
#define AFX_RUSSIANGAMEDLG_H__83A0D65B_BE0A_4E6F_ABD7_61C0D06C5A9F__INCLUDED_
#include "DigitalPlayer.h" // Added by ClassView
#include "ButtonST.h"
#include "Resource.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CRussianGameDlg dialog
class CRussianGameDlg : public CDialog
{
// Construction
public:
CRussianGameDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CRussianGameDlg)
enum { IDD = IDD_RUSSIANGAME_DIALOG };
CButtonST m_Sound;
CButtonST m_Exit;
CButtonST m_Start;
CButtonST m_SpAdd;
CButtonST m_Pause;
CButtonST m_LineAdd;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRussianGameDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
BOOL PlaySounds();
void writescore();
void PaintNextPic();
CDigitalPlayer Line_num;
CDigitalPlayer Sp_num;
int Random(int MaxNumber);
CRect rect;
void checkforrows();
CDigitalPlayer Score_num;
int m_iScore;
void paintpic(CDC *dc);
int m_iLine;
int m_iSp;
void roatepiece();
void movepieceright();
void movepieceleft();
void movepiecedown();
void drawpiece();
void getscore();
void checkforhighscore();
HICON m_hIcon;
BOOL FlagSound;
BOOL fallpiece;
BOOL gameover;
BOOL newpiece;
BOOL pause;
CBitmap picnext[8];
int scorenum[5];
CString scorename[5];
CString heroname;
struct gameboard
{
int square[11][19];
CBitmap pic[2];
int curpiece;
int nextpiece;
int piecex;
int piecey;
int piecepos;
int scroe;
int level;
int rows;
BOOL game;
}board;
// Generated message map functions
//{{AFX_MSG(CRussianGameDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSpadd();
afx_msg void OnExit();
afx_msg void OnStart();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnPause();
afx_msg void OnLineadd();
afx_msg void OnSound();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RUSSIANGAMEDLG_H__83A0D65B_BE0A_4E6F_ABD7_61C0D06C5A9F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -