Huge makeover for debug keys

This commit is contained in:
2025-01-25 19:45:08 -06:00
parent 2e804c1aa9
commit b1efc03029
6 changed files with 182 additions and 126 deletions

View File

@@ -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,8 @@ 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_give_item();
void debug_print_location();
void debug_step_through();