-
Notifications
You must be signed in to change notification settings - Fork 0
/
PuyoStarter.h
42 lines (33 loc) · 1.12 KB
/
PuyoStarter.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
#include "PuyoGame.h"
#include "PuyoIA.h"
#include "PuyoCommander.h"
#ifndef _PUYOSTARTER
#define _PUYOSTARTER
class PuyoStarter : public PuyoDrawable {
public:
PuyoStarter(PuyoCommander *commander, bool aiLeft, int aiLevel, IA_Type aiType, int theme);
virtual ~PuyoStarter();
void run(int score1, int score2, int lives, int point1, int point2);
void draw();
bool leftPlayerWin() const { return attachedGameA->isGameRunning(); }
bool rightPlayerWin() const { return attachedGameB->isGameRunning(); }
int leftPlayerPoints() const { return attachedGameA->getPoints(); }
int rightPlayerPoints() const { return attachedGameB->getPoints(); }
private:
PuyoCommander *commander;
PuyoView *areaA, *areaB;
PuyoGame *attachedGameA, *attachedGameB;
PuyoIA *randomPlayer;
PuyoRandomSystem attachedRandom;
int tickCounts;
int lives;
int score1;
int score2;
bool stopRendering;
bool paused;
int gameSpeed;
void stopRender();
void restartRender();
int blinkingPointsA, blinkingPointsB, savePointsA, savePointsB;
};
#endif // _PUYOSTARTER