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 "panel.hpp"
|
|
|
|
#include "levelmanager.hpp"
|
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
|
|
#include <SFML/Graphics/RectangleShape.hpp>
|
|
|
|
#include "lel.hpp"
|
|
|
|
|
|
|
|
namespace gui {
|
|
|
|
class CombatUI {
|
|
|
|
public:
|
|
|
|
lel::Parser $layout;
|
|
|
|
GameLevel $level;
|
|
|
|
std::vector<sf::RectangleShape> $shapes;
|
|
|
|
CombatUI(GameLevel level);
|
|
|
|
|
|
|
|
void draw(sf::RenderWindow& window);
|
|
|
|
void update_level(GameLevel &level) { $level = level; }
|
|
|
|
};
|
|
|
|
}
|