| c53e6443 |
sago007 |
2012-04-17 11:04 |
1 |
/* |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
2 |
=========================================================================== |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
3 |
blockattack - Block Attack - Rise of the Blocks |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
4 |
Copyright (C) 2005-2012 Poul Sander |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
5 |
|
| c53e6443 |
sago007 |
2012-04-17 11:04 |
6 |
This program is free software: you can redistribute it and/or modify |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
7 |
it under the terms of the GNU General Public License as published by |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
8 |
the Free Software Foundation, either version 2 of the License, or |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
9 |
(at your option) any later version. |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
10 |
|
| c53e6443 |
sago007 |
2012-04-17 11:04 |
11 |
This program is distributed in the hope that it will be useful, |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
14 |
GNU General Public License for more details. |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
15 |
|
| c53e6443 |
sago007 |
2012-04-17 11:04 |
16 |
You should have received a copy of the GNU General Public License |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
17 |
along with this program. If not, see http://www.gnu.org/licenses/ |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
18 |
|
| c53e6443 |
sago007 |
2012-04-17 11:04 |
19 |
Source information and contacts persons can be found at |
| 021de090 |
sago007 |
2015-12-30 18:56 |
20 |
http://blockattack.net |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
21 |
=========================================================================== |
| c53e6443 |
sago007 |
2012-04-17 11:04 |
22 |
*/ |
| 099916fc |
sago007 |
2011-06-10 17:39 |
23 |
|
| 099916fc |
sago007 |
2011-06-10 17:39 |
24 |
#ifndef _GLOBAL_HPP |
| 099916fc |
sago007 |
2011-06-10 17:39 |
25 |
#define _GLOBAL_HPP |
| 099916fc |
sago007 |
2011-06-10 17:39 |
26 |
|
| 099916fc |
sago007 |
2011-06-10 17:39 |
27 |
#include "Libs/NFont.h" |
| f3a1637d |
sago007 |
2015-11-14 21:32 |
28 |
#include <memory> |
| 1d2e2129 |
sago007 |
2015-12-23 15:41 |
29 |
#include "sago/SagoSpriteHolder.hpp" |
| c3b697c6 |
sago007 |
2016-02-07 17:30 |
30 |
#include "highscore.h" |
| 59dcb571 |
sago007 |
2016-02-14 15:34 |
31 |
#include "sago/GameStateInterface.hpp" |
| 099916fc |
sago007 |
2011-06-10 17:39 |
32 |
|
| 099916fc |
sago007 |
2011-06-10 17:39 |
33 |
void MainMenu(); |
| 099916fc |
sago007 |
2011-06-10 17:39 |
34 |
void ResetFullscreen(); |
| 59dcb571 |
sago007 |
2016-02-14 15:34 |
35 |
void RunGameState(sago::GameStateInterface& state ); |
| 0c201300 |
sago007 |
2016-02-20 12:12 |
36 |
bool OpenDialogbox(int x, int y, std::string& name); |
| 099916fc |
sago007 |
2011-06-10 17:39 |
37 |
|
| 1d2e2129 |
sago007 |
2015-12-23 15:41 |
38 |
extern sago::SagoSprite menuMarked; |
| 1d2e2129 |
sago007 |
2015-12-23 15:41 |
39 |
extern sago::SagoSprite menuUnmarked; |
| c3b697c6 |
sago007 |
2016-02-07 17:30 |
40 |
extern sago::SagoSprite bHighScore; |
| c3b697c6 |
sago007 |
2016-02-07 17:30 |
41 |
extern sago::SagoSprite bBack; |
| c3b697c6 |
sago007 |
2016-02-07 17:30 |
42 |
extern sago::SagoSprite bNext; |
| 59dcb571 |
sago007 |
2016-02-14 15:34 |
43 |
extern sago::SagoSprite dialogBox; |
| 099916fc |
sago007 |
2011-06-10 17:39 |
44 |
extern NFont nf_scoreboard_font; |
| c3b697c6 |
sago007 |
2016-02-07 17:30 |
45 |
extern NFont nf_standard_blue_font; |
| c3b697c6 |
sago007 |
2016-02-07 17:30 |
46 |
extern NFont nf_button_font; |
| 099916fc |
sago007 |
2011-06-10 17:39 |
47 |
extern bool MusicEnabled; //true if background music is enabled |
| 099916fc |
sago007 |
2011-06-10 17:39 |
48 |
extern bool SoundEnabled; //true if sound effects is enabled |
| 099916fc |
sago007 |
2011-06-10 17:39 |
49 |
extern bool bFullscreen; //true if game is running fullscreen |
| f6707482 |
sago007 |
2015-12-04 22:55 |
50 |
extern std::string player1name; |
| f6707482 |
sago007 |
2015-12-04 22:55 |
51 |
extern std::string player2name; |
| 078900fe |
sago007 |
2015-12-05 15:31 |
52 |
extern SDL_Renderer *screen; //The whole screen; |
| 59dcb571 |
sago007 |
2016-02-14 15:34 |
53 |
extern Mix_Chunk *typingChunk; |
| 1d2e2129 |
sago007 |
2015-12-23 15:41 |
54 |
extern sago::SagoSprite mouse; |
| 1d2e2129 |
sago007 |
2015-12-23 15:41 |
55 |
extern sago::SagoSprite backgroundImage; |
| 7d604e02 |
sago007 |
2015-11-29 18:39 |
56 |
extern bool highPriority; |
| 59dcb571 |
sago007 |
2016-02-14 15:34 |
57 |
extern bool NoSound; |
| 7d604e02 |
sago007 |
2015-11-29 18:39 |
58 |
extern int verboseLevel; |
| c3b697c6 |
sago007 |
2016-02-07 17:30 |
59 |
extern Highscore theTopScoresEndless; //Stores highscores for endless |
| c3b697c6 |
sago007 |
2016-02-07 17:30 |
60 |
extern Highscore theTopScoresTimeTrial; //Stores highscores for timetrial |
| daa660ab |
sago007 |
2016-04-16 18:13 |
61 |
extern std::unique_ptr<sago::SagoSpriteHolder> spriteHolder; |
| 099916fc |
sago007 |
2011-06-10 17:39 |
62 |
|
| a1072daf |
sago007 |
2016-02-20 12:47 |
63 |
|
| 099916fc |
sago007 |
2011-06-10 17:39 |
64 |
#endif /* _GLOBAL_HPP */ |
| 099916fc |
sago007 |
2011-06-10 17:39 |
65 |
|
|
|
1970-01-01 00:00 |
66 |
|