xoreos  0.0.5
dragonage2.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_DRAGONAGE2_DRAGONAGE2_H
26 #define ENGINES_DRAGONAGE2_DRAGONAGE2_H
27 
28 #include "src/common/scopedptr.h"
29 #include "src/common/ustring.h"
30 
31 #include "src/aurora/types.h"
32 
33 #include "src/engines/engine.h"
34 
36 
37 namespace Engines {
38 
39 class LoadProgress;
40 
41 namespace DragonAge2 {
42 
43 class Game;
44 
46 public:
49 
50  bool detectLanguages(Aurora::GameID game, const Common::UString &target,
51  Aurora::Platform platform,
52  std::vector<Aurora::Language> &languages) const;
53 
54  bool getLanguage(Aurora::Language &language) const;
55  bool changeLanguage();
56 
58  Game &getGame();
59 
62 
63 protected:
64  void run();
65 
66 
67 private:
69 
72 
74 
75 
76  void init();
77  void declareLanguages();
78  void initResources(LoadProgress &progress);
79  void initCursors();
80  void initConfig();
81  void initGameConfig();
82 
83  void deinit();
84 
85  void playIntroVideos();
86 };
87 
88 } // End of namespace DragonAge2
89 
90 } // End of namespace Engines
91 
92 #endif // ENGINES_DRAGONAGE2_DRAGONAGE2_H
GameID
Definition: types.h:393
Generic Aurora engines resource utility functions.
Generic engine interface.
A class holding an UTF-8 string.
Definition: ustring.h:48
static Common::UString getLanguageString(Aurora::Language language)
Return the string Dragon Age II uses to representing this language.
Definition: dragonage2.cpp:60
bool getLanguage(Aurora::Language &language) const
Return the game&#39;s current language.
Definition: dragonage2.cpp:122
Language
Definition: language.h:46
A simple scoped smart pointer template.
std::list< Common::ChangeID > ChangeList
Definition: resources.h:41
void initResources(LoadProgress &progress)
Definition: dragonage2.cpp:210
bool changeLanguage()
Change the game&#39;s current language.
Definition: dragonage2.cpp:127
Common::ScopedPtr< Game > _game
Definition: dragonage2.h:73
Game & getGame()
Return the context running the actual game.
Definition: dragonage2.cpp:135
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition: scopedptr.h:120
Unicode string handling.
bool detectLanguages(Aurora::GameID game, const Common::UString &target, Aurora::Platform platform, std::vector< Aurora::Language > &languages) const
Detect which languages this game instance supports.
Definition: dragonage2.cpp:91
Basic type definitions to handle files used in BioWare&#39;s Aurora engine.
The base class for an engine within BioWare&#39;s Aurora family.
Definition: engine.h:49
Platform
Definition: types.h:429