-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameScene.h
39 lines (34 loc) · 849 Bytes
/
GameScene.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
#pragma once
#include "CheckerBoard.h"
#include "MenuBoard.h"
#include "Button.h"
#include "GameRule.h"
#include "GameAI.h"
#include "Graphic.h"
class GameScene
{
const int scene_width, scene_height;
int game_state;
Color col_human, col_ai;
bool msg_send;
GameRule* pRuler;
GameAI* pAI;
CheckerBoard* pCheckerBoard;
MenuBoard* pMenuBoard;
Button* pStartBlack, * pStartWhite;
Button* pSave, * pRead;
void StartGame(Color human);
void StartGame(Color human, Color board[9][9]);
public:
GameScene(int width, int height);
~GameScene();
void Init();
void Display();
void Idle();
//void Reshape(int new_w, int new_h);
//void Timer(int id);
//void OnKeyBoard(unsigned char key, int x, int y);
void OnMouseMove(int x, int y);
void OnMouseClick(int button, int state, int x, int y);
//void OnSpecialKey(int key, int x, int y);
};