1 // Brain Party
2 // Copyright (C) 2010 Paul Hudson (http://www.tuxradar.com/brainparty)
3 
4 // Brain Party is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 3
7 // of the License, or (at your option) any later version.
8 
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13 
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 
18 #ifndef __BPSAYS_H__
19 #define __BPSAYS_H__
20 
21 #include "Minigame.h"
22 
23 class BPMiniGame_BPSays : public BPMiniGame {
24 public:
25 	~BPMiniGame_BPSays();
26 	BPMiniGame_BPSays(BPGame* game);
27 	void Start();
28 	int GetWeight();
29 	void Render();
30 	void GenerateSequence();
31 	void Tick();
32 	void OnMouseUp();
33 	void OnMouseDown();
34 	void OnMouseMove();
35 	void LevelUp();
36 	void Wrong();
37 	void SetMarathon();
38 protected:
39 	Texture* sfcBackground;
40 	Texture* sfcBackgroundChoosing;
41 	Texture* sfcCircle;
42 
43 	BPList<Colour> ColourList;
44 	BPPList<SpriteFont*> ColourWords;
45 	BPList<int>* Sequence;
46 	BPPList<Texture*>* Numbers;
47 
48 	int GameState;
49 	int Speed;
50 	int Countdown;
51 	int NumCorrect;
52 	int NumErrors;
53 	int SequenceCounter;
54 	int SelectedNumber;
55 
56 	int NumTries;
57 
58 	bool Repeating;
59 
60 	int TimeStarted;
61 };
62 
63 #endif
64