Merge pull request #551 from NQNStudios:keys
Refactor Debug Keys * Collect debug keys into a central location so that the debug help dialog can automatically list every defined debug key. * Add buttons so that debug actions can be taken directly from the debug help dialog. * Add new debug keys to immediately fight an encounter from the current outdoor section.
This commit is contained in:
@@ -2,11 +2,18 @@
|
||||
#ifndef BOE_GAME_ACTIONS_H
|
||||
#define BOE_GAME_ACTIONS_H
|
||||
|
||||
#include <vector>
|
||||
#include <SFML/Window/Event.hpp>
|
||||
#include "location.hpp"
|
||||
#include "dialogxml/keycodes.hpp"
|
||||
#include "tools/framerate_limiter.hpp"
|
||||
|
||||
struct key_action_t {
|
||||
std::vector<char> keys;
|
||||
std::string name;
|
||||
void (*action)();
|
||||
};
|
||||
|
||||
void init_screen_locs();
|
||||
bool prime_time();
|
||||
bool handle_action(const sf::Event& event, cFramerateLimiter& fps_limiter);
|
||||
@@ -75,6 +82,9 @@ void handle_use_space_select(bool& need_reprint);
|
||||
void handle_use_space(location destination, bool& did_something, bool& need_redraw);
|
||||
void show_inventory();
|
||||
void toggle_debug_mode();
|
||||
void init_debug_actions();
|
||||
void show_debug_help();
|
||||
void debug_fight_encounter(bool wandering);
|
||||
void debug_give_item();
|
||||
void debug_print_location();
|
||||
void debug_step_through();
|
||||
|
Reference in New Issue
Block a user