xoreos  0.0.5
console.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_NWN2_CONSOLE_H
26 #define ENGINES_NWN2_CONSOLE_H
27 
28 #include <vector>
29 
31 
32 namespace Engines {
33 
34 namespace NWN2 {
35 
36 class NWN2Engine;
37 
38 class Console : public ::Engines::Console {
39 public:
40  Console(NWN2Engine &engine);
41  ~Console();
42 
43 
44 private:
46 
47  // Caches
48  std::vector<Common::UString> _music;
49  std::vector<Common::UString> _campaigns;
50  std::vector<Common::UString> _modules;
51 
52  size_t _maxSizeMusic;
53 
54 
55  // Updating the caches
56  void updateCaches();
57  void updateMusic();
58  void updateCampaigns();
59  void updateModules();
60  void updateAreas();
61 
62  // The commands
63  void cmdListMusic (const CommandLine &cl);
64  void cmdStopMusic (const CommandLine &cl);
65  void cmdPlayMusic (const CommandLine &cl);
66  void cmdMove (const CommandLine &cl);
67  void cmdListAreas (const CommandLine &cl);
68  void cmdGotoArea (const CommandLine &cl);
69  void cmdListCampaigns(const CommandLine &cl);
70  void cmdLoadCampaign (const CommandLine &cl);
71  void cmdListModules (const CommandLine &cl);
72  void cmdLoadModule (const CommandLine &cl);
73 };
74 
75 } // End of namespace NWN2
76 
77 } // End of namespace Engines
78 
79 #endif // ENGINES_NWN2_CONSOLE_H
void cmdLoadModule(const CommandLine &cl)
Definition: console.cpp:216
NWN2Engine * _engine
Definition: console.h:45
void cmdGotoArea(const CommandLine &cl)
Definition: console.cpp:161
void cmdListAreas(const CommandLine &cl)
Definition: console.cpp:153
std::vector< Common::UString > _modules
All known modules.
Definition: console.h:50
void cmdLoadCampaign(const CommandLine &cl)
Definition: console.cpp:185
void cmdListCampaigns(const CommandLine &cl)
Definition: console.cpp:178
Generic Aurora engines (debug) console.
Console(NWN2Engine &engine)
Definition: console.cpp:47
std::vector< Common::UString > _music
All known music resources.
Definition: console.h:48
void cmdListModules(const CommandLine &cl)
Definition: console.cpp:203
void cmdMove(const CommandLine &cl)
Definition: console.cpp:136
void cmdStopMusic(const CommandLine &cl)
Definition: console.cpp:128
void cmdListMusic(const CommandLine &cl)
Definition: console.cpp:123
void cmdPlayMusic(const CommandLine &cl)
Definition: console.cpp:132
std::vector< Common::UString > _campaigns
All known campaigns.
Definition: console.h:49