Debug UI now has little icons for each enemy and can spawn any enemy. Also I forgot the files.
This commit is contained in:
parent
07ce8a4148
commit
6d73c87c4e
2 changed files with 147 additions and 0 deletions
30
debug_ui.hpp
Normal file
30
debug_ui.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
#include "levelmanager.hpp"
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <SFML/Graphics/Font.hpp>
|
||||
#include "guecs.hpp"
|
||||
#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);
|
||||
bool mouse(float x, float y);
|
||||
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();
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue