-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathManager.h
52 lines (44 loc) · 1.05 KB
/
Manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Manager.h: interface for the CManager class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MANAGER_H__311D53B9_CF58_4FDA_A1C7_5C534814EC93__INCLUDED_)
#define AFX_MANAGER_H__311D53B9_CF58_4FDA_A1C7_5C534814EC93__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CManager
{
public:
CManager();
virtual ~CManager();
void InitGame(int Level);
void DrawScene();
void OnTimer(UINT &nIDEvent);
void OnKeyDown(UINT &nChar);
void OnKeyUp(UINT &nChar);
bool WhetherLoss();
void SetFree();
private:
void PassLevel();
private:
bool KeyLeft,KeyDown,KeyRight,KeySpace;
public:
CRect ClientRect;
UINT Timer1;
UINT Timer2;
UINT FallTimer;
int Level;
long Result;
int LineNumber;
int SeriesLine;
bool Sound;
CString Name;
};
const int DIAMONDCAKE =0;
const int DIAMONDHOOK =1;
const int DIAMONDSEVEN =2;
const int DIAMONDHEAVE =3;
const int DIAMONDBAR =4;
const int DIAMONDTWO =5;
const int DIAMONDSPADE =6;
#endif // !defined(AFX_MANAGER_H__311D53B9_CF58_4FDA_A1C7_5C534814EC93__INCLUDED_)