Fixed the Python detection in the setup for single user installations
[craw.git] / craw / console.hpp
blob93f8bd85ec7e574f9c5d12c6cd73e37507fb49b9
1 #pragma once
3 #include <string>
4 #include <ail/types.hpp>
5 #include <boost/function.hpp>
6 #include <boost/bind.hpp>
8 typedef boost::function<void (string_vector const & arguments)> command_handler;
10 struct console_command
12 std::string
13 command,
14 argument_description,
15 description;
16 long argument_count;
17 command_handler handler;
19 console_command(std::string const & command, std::string const & argument_description, std::string const & description, long argument_count, command_handler handler);
20 bool match(std::string const & match_command, string_vector const & arguments) const;
23 void print_help(string_vector const & arguments);
24 void quit_program(string_vector const & arguments);
25 void print_life(string_vector const & arguments);
26 void maphack_test(string_vector const & arguments);
27 void reveal_act_command(string_vector const & arguments);
28 void get_character_name_command(string_vector const & arguments);
29 void get_player_pointer(string_vector const & arguments);
30 void move(string_vector const & arguments);
31 void print_pid(string_vector const & arguments);
32 void run_test(string_vector const & arguments);
33 void print_text(string_vector const & arguments);
35 void launch_prompt();