xoreos  0.0.5
game.h
Go to the documentation of this file.
1 /* xoreos - A reimplementation of BioWare's Aurora engine
2  *
3  * xoreos is the legal property of its developers, whose names
4  * can be found in the AUTHORS file distributed with this source
5  * distribution.
6  *
7  * xoreos is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * xoreos is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
25 #ifndef ENGINES_SONIC_GAME_H
26 #define ENGINES_SONIC_GAME_H
27 
28 #include "src/common/scopedptr.h"
29 
31 
32 namespace Engines {
33 
34 class Console;
35 
36 namespace Sonic {
37 
38 class SonicEngine;
39 class Module;
40 
41 class Game {
42 public:
43  Game(SonicEngine &engine, ::Engines::Console &console);
44  ~Game();
45 
47  Module &getModule();
48 
49  void run();
50 
51 private:
53 
55 
57 
60 
61 
62  bool waitClick();
63 
64  bool showLicenseSplash();
65  bool showTitle();
66  bool showMainMenu();
67  bool showQuote();
68  bool showChapter1();
69 
70  void runModule();
71 };
72 
73 } // End of namespace Sonic
74 
75 } // End of namespace Engines
76 
77 #endif // ENGINES_SONIC_GAME_H
bool showMainMenu()
Definition: game.cpp:151
Common::ScopedPtr< Module > _module
Definition: game.h:54
A handle to a font.
Definition: fonthandle.h:52
::Engines::Console * _console
Definition: game.h:56
SonicEngine * _engine
Definition: game.h:52
bool showChapter1()
Definition: game.cpp:224
A simple scoped smart pointer template.
bool showLicenseSplash()
Definition: game.cpp:108
A handle to an Aurora font.
bool waitClick()
Definition: game.cpp:94
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition: scopedptr.h:120
A Sonic module.
Definition: module.h:45
void runModule()
Definition: game.cpp:90
Game(SonicEngine &engine, ::Engines::Console &console)
Definition: game.cpp:48
Graphics::Aurora::FontHandle _quoteFont
Definition: game.h:59
Module & getModule()
Return the module context.
Definition: game.cpp:65
Graphics::Aurora::FontHandle _guiFont
Definition: game.h:58