-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathController.h
50 lines (40 loc) · 909 Bytes
/
Controller.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
#ifndef CONTROLLER
#define CONTROLLER
#include <windows.h>
#include "HighScores.h"
#include "Ball.h"
#define CH_HIT 0
#define CH_HITNONE 1
#define CH_SKULL 2
using namespace std;
class Controller
{
Ball** _balls;
int _ballCount;
int _movingBallCount;
int _width;
int _height;
int _lives;
int _level;
int _score;
int _speed;
HighScores* _highScores;
void DestroyBallArray();
public:
Controller();
~Controller();
bool Move();
void ScreenSize(int width, int height);
void PrepareLevel(int level);
int Lives();
int Score();
int RemainingBalls();
int Level();
int Hit(int x, int y, char* score);
Ball* BallAt(int);
int BallCount();
bool CheckLastScore();
void CommitLastScore(const char* name);
list<HighScore*>* HighScoresList();
};
#endif