Pol  Revision:3cfda13
Pol::Core::ConsoleCommand Class Reference

#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 ConsoleCommandfind_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
 

Detailed Description

Definition at line 17 of file console.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void Pol::Core::ConsoleCommand::check_console_commands ( Clib::KeyboardHook kb)
static
size_t Pol::Core::ConsoleCommand::estimateSize ( ) const

Definition at line 76 of file console.cpp.

References description, and script.

ConsoleCommand * Pol::Core::ConsoleCommand::find_console_command ( char  ch)
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().

std::string Pol::Core::ConsoleCommand::showchar ( ) const

Member Data Documentation

char Pol::Core::ConsoleCommand::ch
bool Pol::Core::ConsoleCommand::console_locked = true
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().

char Pol::Core::ConsoleCommand::unlock_char
static

Definition at line 38 of file console.h.


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