|
Pol
Revision:cb584c9
|
#include <console.h>
Public Member Functions | |
| ConsoleCommand (Clib::ConfigElem &elem, const std::string &cmd) | |
| size_t | estimateSize () const |
| std::string | showchar () const |
Static Public Member Functions | |
| static void | check_console_commands (Clib::KeyboardHook *kb) |
| static void | exec_console_cmd (char ch) |
| static ConsoleCommand * | find_console_command (char ch) |
| static void | load_console_commands () |
Public Attributes | |
| char | ch |
| std::string | description |
| std::string | script |
Static Public Attributes | |
| static bool | console_locked = true |
| static char | unlock_char |
| Pol::Core::ConsoleCommand::ConsoleCommand | ( | Clib::ConfigElem & | elem, |
| const std::string & | cmd | ||
| ) |
Definition at line 46 of file console.cpp.
References ch, description, ISTRINGSTREAM, script, and Pol::Clib::ConfigElem::throw_error().
|
static |
Definition at line 248 of file console.cpp.
References exec_console_cmd(), Pol::Clib::KeyboardHook::getch(), and Pol::Clib::KeyboardHook::kbhit().
Referenced by Pol::Core::console_thread(), and exec_console_cmd().
| size_t Pol::Core::ConsoleCommand::estimateSize | ( | ) | const |
Definition at line 76 of file console.cpp.
References description, and script.
|
static |
Definition at line 132 of file console.cpp.
References ch, check_console_commands(), Pol::Core::GameState::console_commands, console_locked, description, ERROR_PRINT, find_console_command(), Pol::Core::find_script2(), Pol::Core::gamestate, ref_ptr< T >::get(), Pol::Core::getcmdstr(), INFO_PRINT, Pol::Core::StateManager::polsig, Pol::Core::ScriptDef::quickconfig(), Pol::Core::PolSig::report_status_signalled, script, Pol::Core::start_script(), Pol::Core::stateManager, and Pol::Plib::systemstate.
Referenced by check_console_commands().
|
static |
Definition at line 100 of file console.cpp.
References ch, Pol::Core::GameState::console_commands, and Pol::Core::gamestate.
Referenced by exec_console_cmd().
|
static |
Definition at line 111 of file console.cpp.
References Pol::Core::GameState::console_commands, Pol::Clib::FileExists(), Pol::Core::gamestate, Pol::Clib::ConfigFile::read(), and Pol::Clib::ConfigElem::remove_prop().
Referenced by Pol::Core::load_data(), and Pol::Core::reload_configuration().
| std::string Pol::Core::ConsoleCommand::showchar | ( | ) | const |
| char Pol::Core::ConsoleCommand::ch |
Definition at line 24 of file console.h.
Referenced by ConsoleCommand(), exec_console_cmd(), find_console_command(), and Pol::Core::getcmdstr().
|
static |
Definition at line 37 of file console.h.
Referenced by exec_console_cmd().
| std::string Pol::Core::ConsoleCommand::description |
Definition at line 26 of file console.h.
Referenced by ConsoleCommand(), estimateSize(), and exec_console_cmd().
| std::string Pol::Core::ConsoleCommand::script |
Definition at line 25 of file console.h.
Referenced by ConsoleCommand(), estimateSize(), and exec_console_cmd().