Exploring raycasters and possibly make a little "doom like" game based on it.
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.
|
|
|
#pragma once
|
|
|
|
#include "levelmanager.hpp"
|
|
|
|
#include "constants.hpp"
|
|
|
|
#include <deque>
|
|
|
|
#include "texture.hpp"
|
|
|
|
#include "guecs.hpp"
|
|
|
|
|
|
|
|
namespace gui {
|
|
|
|
class StatusUI {
|
|
|
|
public:
|
|
|
|
guecs::UI $gui;
|
|
|
|
DinkyECS::Entity $log_to;
|
|
|
|
std::deque<std::string> $messages;
|
|
|
|
GameLevel $level;
|
|
|
|
StatusUI(GameLevel level);
|
|
|
|
void update_level(GameLevel &level) { $level = level; }
|
|
|
|
void log(std::string msg);
|
|
|
|
void render(TexturePack &textures);
|
|
|
|
void draw(sf::RenderWindow &window);
|
|
|
|
};
|
|
|
|
}
|