You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
801 B
31 lines
801 B
5 months ago
|
#pragma once
|
||
|
#include "levelmanager.hpp"
|
||
|
#include <SFML/Graphics/RenderWindow.hpp>
|
||
|
#include <SFML/Graphics/Font.hpp>
|
||
4 months ago
|
#include <guecs/ui.hpp>
|
||
5 months ago
|
#include "stats.hpp"
|
||
|
|
||
|
namespace gui {
|
||
|
class DebugUI {
|
||
|
public:
|
||
|
Stats $stats;
|
||
|
guecs::UI $gui;
|
||
|
GameLevel $level;
|
||
|
LevelManager& $level_mgr;
|
||
|
|
||
|
DebugUI(LevelManager& level_mgr);
|
||
|
|
||
|
void init(lel::Cell cell);
|
||
|
void render(sf::RenderWindow& window);
|
||
5 months ago
|
bool mouse(float x, float y, bool hover);
|
||
5 months ago
|
void debug();
|
||
|
void update_level(GameLevel &level);
|
||
|
void spawn(std::string enemy_key);
|
||
|
void add_spawn_button(std::string enemy_key, std::string sprite_name, std::string region);
|
||
|
|
||
|
Stats::TimeBullshit time_start();
|
||
|
void sample_time(Stats::TimeBullshit start);
|
||
|
void reset_stats();
|
||
|
};
|
||
|
}
|