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
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
);