|
xoreos
0.0.5
|
#include <console.h>


Public Member Functions | |
| Console (KotOREngine &engine) | |
| ~Console () | |
Public Member Functions inherited from Engines::Console | |
| Console (Engine &engine, const Common::UString &font, int fontHeight=0) | |
| void | show () |
| void | hide () |
| bool | isVisible () const |
| float | getWidth () const |
| float | getHeight () const |
| size_t | getLines () const |
| size_t | getColumns () const |
| bool | processEvent (const Events::Event &event) |
| void | disableCommand (const Common::UString &cmd, const Common::UString &reason="") |
| void | enableCommand (const Common::UString &cmd) |
| void | clear () |
| void | print (const Common::UString &line) |
| void | printf (const char *s,...) GCC_PRINTF(2 |
Private Member Functions | |
| void | updateCaches () |
| void | updateModules () |
| void | updateMusic () |
| void | cmdExitModule (const CommandLine &cl) |
| void | cmdListModules (const CommandLine &cl) |
| void | cmdLoadModule (const CommandLine &cl) |
| void | cmdListMusic (const CommandLine &cl) |
| void | cmdStopMusic (const CommandLine &cl) |
| void | cmdPlayMusic (const CommandLine &cl) |
| void | cmdFlyCam (const CommandLine &cl) |
| void | cmdShowWalkmesh (const CommandLine &cl) |
| void | cmdShowTriggers (const CommandLine &cl) |
| void | cmdGetPCRoom (const CommandLine &cl) |
| void | cmdListRoomsVisibleFrom (const CommandLine &cl) |
| void | cmdPlayAnim (const CommandLine &cl) |
| void | cmdAddItem (const CommandLine &cl) |
Private Attributes | |
| KotOREngine * | _engine |
| std::vector< Common::UString > | _modules |
| All known modules. More... | |
| std::vector< Common::UString > | _music |
| All known music resources. More... | |
| size_t | _maxSizeMusic |
Additional Inherited Members | |
Protected Types inherited from Engines::Console | |
| typedef boost::function< void(const CommandLine &cl)> | CommandCallback |
Protected Member Functions inherited from Engines::Console | |
| void | printException (Common::Exception &e, const Common::UString &prefix="ERROR: ") |
| bool | registerCommand (const Common::UString &cmd, const CommandCallback &callback, const Common::UString &help) |
| void | printCommandHelp (const Common::UString &cmd) |
| void | printList (const std::vector< Common::UString > &list, size_t maxSize=0) |
| void | setArguments (const Common::UString &cmd, const std::vector< Common::UString > &args) |
| void | setArguments (const Common::UString &cmd) |
| virtual void | showCallback () |
Static Protected Member Functions inherited from Engines::Console | |
| static void | splitArguments (Common::UString argLine, std::vector< Common::UString > &args) |
| Engines::KotOR::Console::Console | ( | KotOREngine & | engine | ) |
Definition at line 51 of file console.cpp.
References cmdAddItem(), cmdExitModule(), cmdFlyCam(), cmdGetPCRoom(), cmdListModules(), cmdListMusic(), cmdListRoomsVisibleFrom(), cmdLoadModule(), cmdPlayAnim(), cmdPlayMusic(), cmdShowTriggers(), cmdShowWalkmesh(), cmdStopMusic(), and Engines::Console::registerCommand().

|
virtual |
Reimplemented from Engines::Console.
Definition at line 85 of file console.cpp.
|
private |
Definition at line 204 of file console.cpp.
References _engine, Engines::KotOR::Module::addItemToActiveObject(), Engines::Console::CommandLine::args, Engines::Console::CommandLine::cmd, Common::UString::empty(), Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), Common::parseString(), Engines::Console::printCommandHelp(), and Common::UString::split().
Referenced by Console().


|
private |
Definition at line 120 of file console.cpp.
References _engine, Engines::KotOR::Module::exit(), Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), and Engines::Console::hide().
Referenced by Console().


|
private |
Definition at line 162 of file console.cpp.
References _engine, Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), and Engines::KotOR::Module::toggleFreeRoamCamera().
Referenced by Console().


|
private |
Definition at line 174 of file console.cpp.
References _engine, Common::UString::c_str(), Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), Engines::KotOR::Module::getPC(), Engines::KotOR::Room::getResRef(), Engines::KotOR::Object::getRoom(), and Engines::Console::printf().
Referenced by Console().


|
private |
Definition at line 125 of file console.cpp.
References _modules, Common::UString::c_str(), Engines::KotOR::Module::getName(), Engines::Console::printf(), and updateModules().
Referenced by Console().


|
private |
Definition at line 149 of file console.cpp.
References _maxSizeMusic, _music, Engines::Console::printList(), and updateMusic().
Referenced by Console().


|
private |
Definition at line 179 of file console.cpp.
References _engine, Engines::Console::CommandLine::args, Engines::Console::CommandLine::cmd, Common::UString::empty(), Engines::KotOR::Module::getCurrentArea(), Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), Engines::KotOR::Area::getRoomsVisibleFrom(), Engines::Console::printCommandHelp(), and Engines::Console::printf().
Referenced by Console().


|
private |
Definition at line 132 of file console.cpp.
References _engine, _modules, Engines::Console::CommandLine::args, Common::UString::c_str(), Engines::Console::CommandLine::cmd, Common::UString::empty(), Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), Engines::Console::hide(), Engines::KotOR::Module::load(), Engines::Console::printCommandHelp(), and Engines::Console::printf().
Referenced by Console().


|
private |
Definition at line 192 of file console.cpp.
References _engine, Engines::Console::CommandLine::args, Engines::Console::CommandLine::cmd, Common::UString::empty(), Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), Engines::KotOR::Module::playAnimationOnActiveObject(), Engines::Console::printCommandHelp(), and Common::UString::split().
Referenced by Console().


|
private |
Definition at line 158 of file console.cpp.
References _engine, Engines::Console::CommandLine::args, Engines::KotOR::KotOREngine::getGame(), and Engines::KotOR::Game::playMusic().
Referenced by Console().


|
private |
Definition at line 170 of file console.cpp.
References _engine, Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), and Engines::KotOR::Module::toggleTriggers().
Referenced by Console().


|
private |
Definition at line 166 of file console.cpp.
References _engine, Engines::KotOR::KotOREngine::getGame(), Engines::KotOR::Game::getModule(), and Engines::KotOR::Module::toggleWalkmesh().
Referenced by Console().


|
private |
Definition at line 154 of file console.cpp.
References _engine, Engines::KotOR::KotOREngine::getGame(), and Engines::KotOR::Game::stopMusic().
Referenced by Console().


|
privatevirtual |
Reimplemented from Engines::Console.
Definition at line 88 of file console.cpp.
References Engines::Console::updateCaches(), updateModules(), and updateMusic().

|
private |
Definition at line 95 of file console.cpp.
References _modules, Engines::KotOR::Game::getModules(), and Engines::Console::setArguments().
Referenced by cmdListModules(), and updateCaches().


|
private |
Definition at line 101 of file console.cpp.
References _maxSizeMusic, _music, Common::FileList::begin(), Common::FileList::end(), Common::UString::equalsIgnoreCase(), Common::FilePath::findSubDirectory(), Common::FilePath::getExtension(), Common::FilePath::getStem(), MAX(), ResMan, and Engines::Console::setArguments().
Referenced by cmdListMusic(), and updateCaches().


|
private |
Definition at line 45 of file console.h.
Referenced by cmdAddItem(), cmdExitModule(), cmdFlyCam(), cmdGetPCRoom(), cmdListRoomsVisibleFrom(), cmdLoadModule(), cmdPlayAnim(), cmdPlayMusic(), cmdShowTriggers(), cmdShowWalkmesh(), and cmdStopMusic().
|
private |
Definition at line 51 of file console.h.
Referenced by cmdListMusic(), and updateMusic().
|
private |
All known modules.
Definition at line 48 of file console.h.
Referenced by cmdListModules(), cmdLoadModule(), and updateModules().
|
private |
All known music resources.
Definition at line 49 of file console.h.
Referenced by cmdListMusic(), and updateMusic().
1.8.14