A weird game.
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.
 
 
 
 
 
 
turings-tarpit/gui.hpp

32 lines
540 B

#pragma once
#include <string>
#include "game_engine.hpp"
#include "sfmlbackend.hpp"
#include "guecs.hpp"
using std::string;
class Builder;
class GUI {
std::vector<string> _lines;
SFMLBackend &sfml;
guecs::UI $gui;
std::wstring $status;
DinkyECS::Entity $hp_bar;
public:
GUI(SFMLBackend &backend);
void output(const string msg);
void update_status(GameEngine &game);
void main_loop();
void build_success();
void build_failed(bool play_sound, const string &command);
void you_died();
void building();
};