FIFE  2008.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
FIFE::Console Class Reference

#include <console.h>

List of all members.

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)

Detailed Description

Ingame Console

Definition at line 64 of file console.h.


Constructor & Destructor Documentation

FIFE::Console::~Console ( ) [virtual]

Destructor

Definition at line 148 of file console.cpp.


Member Function Documentation

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().

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.

Todo:
generalize the generated command and the regexp used.

Definition at line 231 of file console.cpp.

References FIFE::ConsoleExecuter::onConsoleCommand(), println(), and FIFE::Exception::what().

Referenced by Console().

Here is the caller graph for this function:

void FIFE::Console::focusLost ( const gcn::Event &  event)

Hide if we loose focus

Definition at line 305 of file console.cpp.

References 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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

Layouts the console to match e.g. font changes

Definition at line 90 of file console.cpp.

Referenced by Console().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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.

Toggle the console Toggles whether the Console is shown or not. Calls show() or hide() respectively.

Definition at line 224 of file console.cpp.

Update the scroll in/out animation.

Note:
Is a timer callback.

Definition at line 169 of file console.cpp.

Referenced by Console().

Here is the caller graph for this function:

Update the FPS caption

Note:
Is a timer callback.

Definition at line 162 of file console.cpp.

Referenced by Console().

Here is the caller graph for this function:


The documentation for this class was generated from the following files: