polserver/pol-core/pol/console.h
turley 189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00

43 lines
724 B
C++

#ifndef POL_CONSOLE_H
#define POL_CONSOLE_H
#include <string>
namespace Pol
{
namespace Clib
{
class ConfigElem;
class KeyboardHook;
}
namespace Core
{
class ConsoleCommand
{
public:
ConsoleCommand( Clib::ConfigElem& elem, const std::string& cmd );
size_t estimateSize() const;
std::string showchar() const;
char ch;
std::string script;
std::string description;
static ConsoleCommand* find_console_command( char ch );
static void load_console_commands();
static void exec_console_cmd( char ch );
#ifdef _WIN32
static void check_console_commands();
#else
static void check_console_commands( Clib::KeyboardHook* kb );
#endif
static bool console_locked;
static char unlock_char;
};
}
}
#endif