33 typedef void (
DebugConsole::*
function)(std::vector<string>, std::vector<int>);
53 static std::string db_messages[10] = {
54 "I'm sorry, I couldn't understand that command.",
56 "Incorrect argument types.",
57 "Commands: spawn, help, list, killall. Type 'help <command>' for how to use a command.",
58 "Spawn enemies. Args: chunk_x, chunk_y, x, y, depth, type of enemy, times to run command.",
59 "List available something. Options are: enemytype, coords",
60 "Kill all the enemies. Like, all of them.",
61 "Teleports the player. Args: chunk_x, chunk_y, x, y",
62 "EnemyTypes--1: Kobold, 2: Rabbit",
145 void help(std::vector<std::string> command, std::vector<int> args);
152 void list(std::vector<std::string> command, std::vector<int> args);
159 void killall(std::vector<std::string> command, std::vector<int> args);
166 void spawn(std::vector<std::string> command, std::vector<int> args);
173 void teleport(std::vector<std::string> command, std::vector<int> args);
void spawn(std::vector< std::string > command, std::vector< int > args)
Definition: debug.cpp:152
std::string debug_message
Definition: debug.h:92
int current_place
Definition: debug.h:82
std::map< std::string, function > func_map
Definition: debug.h:104
std::string input_from_buffer(int direction)
Definition: debug.cpp:184
DebugConsole()
Definition: debug.cpp:24
void list(std::vector< std::string > command, std::vector< int > args)
Definition: debug.cpp:116
void teleport(std::vector< std::string > command, std::vector< int > args)
Definition: debug.cpp:168
int buffer_size
Definition: debug.h:87
Game * game
Definition: debug.h:97
void run_command(std::string input)
Definition: debug.cpp:46
int buffer_place
Definition: debug.h:78
void help(std::vector< std::string > command, std::vector< int > args)
Definition: debug.cpp:88
void killall(std::vector< std::string > command, std::vector< int > args)
Definition: debug.cpp:142
std::vector< std::string > buffer
Definition: debug.h:73
std::string get_message()
Definition: debug.cpp:180