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.
34 lines
651 B
34 lines
651 B
#pragma once
|
|
|
|
#include <string>
|
|
#include "game_engine.hpp"
|
|
#include "sfmlbackend.hpp"
|
|
|
|
using std::string;
|
|
|
|
class Builder;
|
|
|
|
class GUI {
|
|
std::vector<string> _lines;
|
|
|
|
SoundQuip you_died_sound;
|
|
SoundQuip build_works_sound;
|
|
SoundQuip build_failed_sound;
|
|
SoundQuip building_sound;
|
|
|
|
public:
|
|
|
|
GUI();
|
|
|
|
// FOUND BUG: adding this found that I was accidentally copying the gui, really it shouldn't be copyable
|
|
GUI(GUI &g) = delete;
|
|
|
|
void output(const string msg);
|
|
|
|
int main_loop(GameEngine &game, Builder &builder);
|
|
|
|
void build_works();
|
|
void build_failed(bool play_sound, const string &command);
|
|
void you_died();
|
|
void building();
|
|
};
|
|
|