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_KOTOR2_CONSOLE_H
26 #define ENGINES_KOTOR2_CONSOLE_H
27 
28 #include <vector>
29 
31 
32 namespace Engines {
33 
34 namespace KotOR2 {
35 
36 class KotOR2Engine;
37 
38 class Console : public ::Engines::Console {
39 public:
40  Console(KotOR2Engine &engine);
41  ~Console();
42 
43 
44 private:
46 
47  // Caches
48  std::vector<Common::UString> _modules;
49  std::vector<Common::UString> _music;
50 
51  size_t _maxSizeMusic;
52 
53 
54  // Updating the caches
55  void updateCaches();
56  void updateModules();
57  void updateMusic();
58 
59  // The commands
60  void cmdExitModule (const CommandLine &cl);
61  void cmdListModules (const CommandLine &cl);
62  void cmdLoadModule (const CommandLine &cl);
63  void cmdListMusic (const CommandLine &cl);
64  void cmdStopMusic (const CommandLine &cl);
65  void cmdPlayMusic (const CommandLine &cl);
66  void cmdFlyCam (const CommandLine &cl);
67  void cmdShowWalkmesh (const CommandLine &cl);
68  void cmdShowTriggers (const CommandLine &cl);
69  void cmdGetPCRoom (const CommandLine &cl);
70  void cmdListRoomsVisibleFrom(const CommandLine &cl);
71  void cmdPlayAnim (const CommandLine &cl);
72 };
73 
74 } // End of namespace KotOR2
75 
76 } // End of namespace Engines
77 
78 #endif // ENGINES_KOTOR2_CONSOLE_H
void cmdStopMusic(const CommandLine &cl)
Definition: console.cpp:150
void cmdPlayAnim(const CommandLine &cl)
Definition: console.cpp:188
void cmdShowWalkmesh(const CommandLine &cl)
Definition: console.cpp:162
void cmdGetPCRoom(const CommandLine &cl)
Definition: console.cpp:170
void cmdExitModule(const CommandLine &cl)
Definition: console.cpp:116
KotOR2Engine * _engine
Definition: console.h:45
Console(KotOR2Engine &engine)
Definition: console.cpp:50
void cmdLoadModule(const CommandLine &cl)
Definition: console.cpp:128
Generic Aurora engines (debug) console.
void cmdShowTriggers(const CommandLine &cl)
Definition: console.cpp:166
std::vector< Common::UString > _modules
All known modules.
Definition: console.h:48
void cmdPlayMusic(const CommandLine &cl)
Definition: console.cpp:154
void cmdListMusic(const CommandLine &cl)
Definition: console.cpp:145
void cmdListRoomsVisibleFrom(const CommandLine &cl)
Definition: console.cpp:175
std::vector< Common::UString > _music
All known music resources.
Definition: console.h:49
void cmdFlyCam(const CommandLine &cl)
Definition: console.cpp:158
void cmdListModules(const CommandLine &cl)
Definition: console.cpp:121