1 #include "PuyoGame.h"
2 #include "PuyoIA.h"
3 #include "PuyoCommander.h"
4 
5 #ifndef _PUYOSTARTER
6 #define _PUYOSTARTER
7 
8 class PuyoStarter : public PuyoDrawable {
9 public:
10     PuyoStarter(PuyoCommander *commander, bool aiLeft, int aiLevel, IA_Type aiType, int theme);
11     virtual ~PuyoStarter();
12     void run(int score1, int score2, int lives, int point1, int point2);
13     void draw();
14 
leftPlayerWin()15     bool leftPlayerWin() const  { return attachedGameA->isGameRunning(); }
rightPlayerWin()16     bool rightPlayerWin() const { return attachedGameB->isGameRunning(); }
17 
leftPlayerPoints()18     int leftPlayerPoints() const { return attachedGameA->getPoints(); }
rightPlayerPoints()19     int rightPlayerPoints() const { return attachedGameB->getPoints(); }
20 
21 private:
22         PuyoCommander *commander;
23     PuyoView *areaA, *areaB;
24     PuyoGame *attachedGameA, *attachedGameB;
25     PuyoIA *randomPlayer;
26     PuyoRandomSystem attachedRandom;
27     int tickCounts;
28     int lives;
29     int score1;
30     int score2;
31     bool stopRendering;
32     bool paused;
33     int gameSpeed;
34 
35     void stopRender();
36     void restartRender();
37 
38     int blinkingPointsA, blinkingPointsB, savePointsA, savePointsB;
39 };
40 
41 #endif // _PUYOSTARTER
42 
43