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_JADE_GAME_H
26 #define ENGINES_JADE_GAME_H
27 
28 #include <vector>
29 
30 #include "src/common/scopedptr.h"
31 #include "src/common/ustring.h"
32 
33 #include "src/sound/sound.h"
34 
36 
37 namespace Sound {
38  class XACTWaveBank;
39 }
40 
41 namespace Engines {
42 
43 class Console;
44 
45 namespace Jade {
46 
47 class JadeEngine;
48 
49 class Functions;
50 
51 class Module;
52 
54 public:
55  Game(JadeEngine &engine, ::Engines::Console &console, Aurora::Platform platform);
56  ~Game();
57 
59  Module &getModule();
60 
61  void run();
62 
64  static void getModules(std::vector<Common::UString> &modules);
65 
66 
67 private:
69 
72 
74 
76 
79 
80  void playMenuMusic();
81  void stopMenuMusic();
82 
83  void mainMenu();
84  void runModule();
85 };
86 
87 } // End of namespace Jade
88 
89 } // End of namespace Engines
90 
91 #endif // ENGINES_JADE_GAME_H
Module & getModule()
Return the module context.
Definition: game.cpp:61
An abstract XACT WaveBank interface.
Definition: xactwavebank.h:46
A simple scoped smart pointer template.
void runModule()
Definition: game.cpp:84
Definition: game.h:37
void playMenuMusic()
Definition: game.cpp:113
Common::ScopedPtr< Module > _module
Definition: game.h:70
static void getModules(std::vector< Common::UString > &modules)
Return a list of all modules.
Definition: game.cpp:160
The global sound manager, handling all sound output.
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition: scopedptr.h:120
::Engines::Console * _console
Definition: game.h:75
An NWScript variable container.
A Jade module.
Definition: module.h:53
Unicode string handling.
Common::ScopedPtr< Sound::XACTWaveBank > _musicBank
Definition: game.h:77
A handle to a sound channel.
Definition: types.h:35
JadeEngine * _engine
Definition: game.h:68
Common::ScopedPtr< Functions > _functions
Definition: game.h:71
Aurora::Platform _platform
Definition: game.h:73
Platform
Definition: types.h:429
void stopMenuMusic()
Definition: game.cpp:138
Game(JadeEngine &engine, ::Engines::Console &console, Aurora::Platform platform)
Definition: game.cpp:52
Sound::ChannelHandle _menuMusic
Definition: game.h:78