www.pudn.com > TetrisWang.zip > Tetris.h
// Tetris.h : main header file for the TETRIS application
//
#if !defined(AFX_TETRIS_H__9CAB1AC5_F75F_11D4_910A_5254ABDD22CE__INCLUDED_)
#define AFX_TETRIS_H__9CAB1AC5_F75F_11D4_910A_5254ABDD22CE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
const int MAX_GAMES = 2;
const int MAX_CTRL_KEYS = 4;
const int MAX_TETRIS_TYPE = 22;
const int MAX_COLORS = 22;
const UINT TIMER_INDEX_1 = 1;
const UINT TIMER_INDEX_2 = 2;
const UINT TIMER_COMPUTER = 3;
const int MAX_SPEED = 9;
const int LINES_CHANGE_SPEED = 30;
/////////////////////////////////////////////////////////////////////////////
// CTetrisApp:
// See Tetris.cpp for the implementation of this class
//
CString GetLangueString(const CString str);
void LangueChange(int nLangue);
CString UintToString(UINT nChar);
class CTetrisApp : public CWinApp
{
public:
enum {CHINESE=1, ENGLISH=2};
CTetrisApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTetrisApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
public:
static int m_nLangue;
// Implementation
public:
//{{AFX_MSG(CTetrisApp)
afx_msg void OnAppAbout();
afx_msg void OnUpdateAppAbout(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TETRIS_H__9CAB1AC5_F75F_11D4_910A_5254ABDD22CE__INCLUDED_)