27 #include <boost/bind.hpp> 53 "Usage: exitmodule\nExit the module, returning to the main menu");
55 "Usage: listmodules\nList all modules");
57 "Usage: loadmodule <module>\nLoad and enter the specified module");
92 for (std::vector<Common::UString>::iterator m =
_modules.begin(); m !=
_modules.end(); ++m) {
93 if (m->equalsIgnoreCase(cl.
args)) {
void exit()
Exit the currently running module.
Module & getModule()
Return the module context.
Engine class handling Jade Empire.
The global config manager.
Console(JadeEngine &engine)
Game & getGame()
Return the context running the actual game.
The context handling the gameplay in Jade Empire.
void cmdListModules(const CommandLine &cl)
const char * c_str() const
Return the (utf8 encoded) string data.
Basic Aurora graphics types.
Utility templates and functions.
static void getModules(std::vector< Common::UString > &modules)
Return a list of all modules.
const char * kSystemFontMono
Identifier used for the monospaced system font.
void printList(const std::vector< Common::UString > &list, size_t maxSize=0)
bool empty() const
Is the string empty?
std::vector< Common::UString > _modules
All known modules.
void cmdLoadModule(const CommandLine &cl)
void load(const Common::UString &module)
Load a module.
void printf(const char *s,...) GCC_PRINTF(2
void cmdExitModule(const CommandLine &cl)
virtual void updateCaches()
void printCommandHelp(const Common::UString &cmd)
void setArguments(const Common::UString &cmd, const std::vector< Common::UString > &args)
bool registerCommand(const Common::UString &cmd, const CommandCallback &callback, const Common::UString &help)
The global resource manager for Aurora resources.
Utility class for manipulating file paths.