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_KOTOR_CONSOLE_H
26 #define ENGINES_KOTOR_CONSOLE_H
27 
28 #include <vector>
29 
31 
32 namespace Engines {
33 
34 namespace KotOR {
35 
36 class KotOREngine;
37 
38 class Console : public ::Engines::Console {
39 public:
40  Console(KotOREngine &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  void cmdAddItem (const CommandLine &cl);
73 };
74 
75 } // End of namespace KotOR
76 
77 } // End of namespace Engines
78 
79 #endif // ENGINES_KOTOR_CONSOLE_H
void cmdLoadModule(const CommandLine &cl)
Definition: console.cpp:132
void cmdExitModule(const CommandLine &cl)
Definition: console.cpp:120
void cmdStopMusic(const CommandLine &cl)
Definition: console.cpp:154
void cmdPlayAnim(const CommandLine &cl)
Definition: console.cpp:192
std::vector< Common::UString > _modules
All known modules.
Definition: console.h:48
Console(KotOREngine &engine)
Definition: console.cpp:51
void cmdGetPCRoom(const CommandLine &cl)
Definition: console.cpp:174
void cmdPlayMusic(const CommandLine &cl)
Definition: console.cpp:158
KotOREngine * _engine
Definition: console.h:45
void cmdListModules(const CommandLine &cl)
Definition: console.cpp:125
void cmdShowWalkmesh(const CommandLine &cl)
Definition: console.cpp:166
Generic Aurora engines (debug) console.
void cmdListRoomsVisibleFrom(const CommandLine &cl)
Definition: console.cpp:179
std::vector< Common::UString > _music
All known music resources.
Definition: console.h:49
void cmdFlyCam(const CommandLine &cl)
Definition: console.cpp:162
void cmdShowTriggers(const CommandLine &cl)
Definition: console.cpp:170
void cmdAddItem(const CommandLine &cl)
Definition: console.cpp:204
void cmdListMusic(const CommandLine &cl)
Definition: console.cpp:149