-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGame.h
51 lines (43 loc) · 1.06 KB
/
Game.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
#pragma once
#include "TinyEngine\\T_Engine.h"
#include "TinyEngine\\T_Scene.h"
#include "TinyEngine\\T_Sprite.h"
#include "TinyEngine\\T_AI.h"
#include "MainMenu.h"
#include "HelpMenu.h"
#include "ChoiceMenu.h"
#include "GameLevel.h"
#include "HandBook.h"
#include "GameLevelMenu.h"
#include "GameLevel2.h"
#include "GameLevel3.h"
class PVZ_Game: public T_Engine
{
public:
PVZ_Game(HINSTANCE hInstance, LPCTSTR szWindowClass, LPCTSTR szTitle,
WORD Icon = NULL, WORD SmIcon = NULL,
int iWidth = WIN_WIDTH, int iHeight = WIN_HEIGHT);
~PVZ_Game();
void GameInit();
void GameLogic();
void GameEnd();
void GamePaint(HDC hdc);
void GameKeyAction(int ActionType = KEY_SYS_NONE);
void GameMouseAction(int x, int y, int ActionType);
private:
int wnd_width, wnd_height;
AudioDX ds;
MainMenu mainMenu;
HelpMenu helpMenu;
ChoiceMenu choiceMenu;
ChoiceMenu returnMenu;
HandBook handMenu;
GameLevelMenu gameLevelMenu;
bool levlechange;
int level = 1;
GameLevel gameLevel;
GameLevel2 gameLevel2;
GameLevel3 gameLevel3;
void MenuInit();
void AudioInit();
};