xoreos
0.0.5
|
#include <console.h>
Public Member Functions | |
Console (DragonAge2Engine &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 | updateAreas () |
void | updateCampaigns () |
void | cmdListAreas (const CommandLine &cl) |
void | cmdLoadArea (const CommandLine &cl) |
void | cmdListCampaigns (const CommandLine &cl) |
void | cmdLoadCampaign (const CommandLine &cl) |
Private Attributes | |
DragonAge2Engine * | _engine |
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::DragonAge2::Console::Console | ( | DragonAge2Engine & | engine | ) |
Definition at line 42 of file console.cpp.
References cmdListAreas(), cmdListCampaigns(), cmdLoadArea(), cmdLoadCampaign(), and Engines::Console::registerCommand().
|
virtual |
Reimplemented from Engines::Console.
Definition at line 56 of file console.cpp.
|
private |
Definition at line 91 of file console.cpp.
References _engine, Engines::DragonAge2::Campaign::getAreaRIM(), Engines::DragonAge2::Campaign::getAreas(), Engines::DragonAge2::Game::getCampaigns(), Engines::DragonAge2::Campaigns::getCurrentCampaign(), Engines::DragonAge2::DragonAge2Engine::getGame(), Engines::DragonAge2::Area::getName(), and Engines::Console::printf().
Referenced by Console().
|
private |
Definition at line 128 of file console.cpp.
References _engine, Engines::DragonAge2::Campaigns::getCampaigns(), Engines::DragonAge2::Game::getCampaigns(), Engines::DragonAge2::DragonAge2Engine::getGame(), and Engines::Console::printf().
Referenced by Console().
|
private |
Definition at line 105 of file console.cpp.
References _engine, Engines::Console::CommandLine::args, Common::UString::c_str(), Engines::Console::CommandLine::cmd, Common::UString::empty(), Engines::DragonAge2::Campaign::getAreas(), Engines::DragonAge2::Game::getCampaigns(), Engines::DragonAge2::Campaigns::getCurrentCampaign(), Engines::DragonAge2::DragonAge2Engine::getGame(), Engines::Console::hide(), Engines::DragonAge2::Campaign::movePC(), Engines::Console::printCommandHelp(), and Engines::Console::printf().
Referenced by Console().
|
private |
Definition at line 137 of file console.cpp.
References _engine, Engines::Console::CommandLine::args, Common::UString::c_str(), Engines::Console::CommandLine::cmd, Common::UString::empty(), Engines::DragonAge2::Campaigns::getCampaigns(), Engines::DragonAge2::Game::getCampaigns(), Engines::DragonAge2::DragonAge2Engine::getGame(), Engines::Console::hide(), Engines::DragonAge2::Campaigns::load(), Engines::Console::printCommandHelp(), and Engines::Console::printf().
Referenced by Console().
|
private |
Definition at line 66 of file console.cpp.
References _engine, Engines::DragonAge2::Campaign::getAreas(), Engines::DragonAge2::Game::getCampaigns(), Engines::DragonAge2::Campaigns::getCurrentCampaign(), Engines::DragonAge2::DragonAge2Engine::getGame(), and Engines::Console::setArguments().
Referenced by updateCaches().
|
privatevirtual |
Reimplemented from Engines::Console.
Definition at line 59 of file console.cpp.
References updateAreas(), Engines::Console::updateCaches(), and updateCampaigns().
|
private |
Definition at line 76 of file console.cpp.
References _engine, Engines::DragonAge2::Campaigns::getCampaigns(), Engines::DragonAge2::Game::getCampaigns(), Engines::DragonAge2::DragonAge2Engine::getGame(), and Engines::Console::setArguments().
Referenced by updateCaches().
|
private |
Definition at line 42 of file console.h.
Referenced by cmdListAreas(), cmdListCampaigns(), cmdLoadArea(), cmdLoadCampaign(), updateAreas(), and updateCampaigns().