FIFE 2008.0
|
#include <console.h>
Public Member Functions | |
Console () | |
virtual | ~Console () |
void | println (const std::string &s) |
void | show () |
void | hide () |
void | clear () |
void | toggleShowHide () |
void | execute (std::string cmd) |
void | updateCaption () |
void | updateAnimation () |
void | action (const gcn::ActionEvent &event) |
void | setConsoleExecuter (ConsoleExecuter *const consoleexec) |
void | removeConsoleExecuter () |
void | reLayout () |
void | setIOFont (GuiFont *font) |
void | focusLost (const gcn::Event &event) |
FIFE::Console::Console | ( | ) |
Constructor
Definition at line 50 of file console.cpp.
References execute(), reLayout(), FIFE::CommandLine::setCallback(), setIOFont(), updateAnimation(), and updateCaption().
FIFE::Console::~Console | ( | ) | [virtual] |
Destructor
Definition at line 148 of file console.cpp.
void FIFE::Console::action | ( | const gcn::ActionEvent & | event | ) |
Callback from guichan to respond to button press
Definition at line 284 of file console.cpp.
References FIFE::ConsoleExecuter::onToolsClick().
void FIFE::Console::clear | ( | ) |
Clear the console output
Definition at line 185 of file console.cpp.
void FIFE::Console::execute | ( | std::string | cmd | ) |
Execute a command Normally just sends the command to runString() Checks whether the cmd is just one token and print it's value rather than throw an useless error.
Definition at line 231 of file console.cpp.
References FIFE::ConsoleExecuter::onConsoleCommand(), println(), and FIFE::Exception::what().
Referenced by Console().
void FIFE::Console::focusLost | ( | const gcn::Event & | event | ) |
void FIFE::Console::hide | ( | ) |
Hide the console Removes itself from the toplevel container and pops it's input context
Definition at line 217 of file console.cpp.
Referenced by focusLost().
void FIFE::Console::println | ( | const std::string & | s | ) |
Print one or more lines to the console output
Definition at line 254 of file console.cpp.
Referenced by execute().
void FIFE::Console::reLayout | ( | ) |
Layouts the console to match e.g. font changes
Definition at line 90 of file console.cpp.
Referenced by Console().
void FIFE::Console::removeConsoleExecuter | ( | ) |
Removes executer for the console
Definition at line 296 of file console.cpp.
void FIFE::Console::setConsoleExecuter | ( | ConsoleExecuter *const | consoleexec | ) |
Sets executer for the console
Definition at line 292 of file console.cpp.
void FIFE::Console::setIOFont | ( | GuiFont * | font | ) |
Sets the font used for the input and output areas
Definition at line 300 of file console.cpp.
Referenced by Console().
void FIFE::Console::show | ( | ) |
Show the console Adds the Console to the guichan toplevel container and pushes an input Context so that keys are not send to the rest of the game.
Definition at line 209 of file console.cpp.
void FIFE::Console::toggleShowHide | ( | ) |
Toggle the console Toggles whether the Console is shown or not. Calls show() or hide() respectively.
Definition at line 224 of file console.cpp.
void FIFE::Console::updateAnimation | ( | ) |
Update the scroll in/out animation.
Definition at line 169 of file console.cpp.
Referenced by Console().
void FIFE::Console::updateCaption | ( | ) |
Update the FPS caption
Definition at line 162 of file console.cpp.
Referenced by Console().