Moved the text attaching code to the arena.
This commit is contained in:
parent
f50e713179
commit
0d23cf9537
5 changed files with 43 additions and 15 deletions
|
|
@ -18,6 +18,7 @@ namespace boss {
|
|||
using std::shared_ptr;
|
||||
|
||||
struct UI {
|
||||
sf::RenderWindow* $window = nullptr;
|
||||
shared_ptr<DinkyECS::World> $world = nullptr;
|
||||
DinkyECS::Entity $boss_id = DinkyECS::NONE;
|
||||
DinkyECS::Entity $player_id = DinkyECS::NONE;
|
||||
|
|
@ -31,7 +32,8 @@ namespace boss {
|
|||
UI(shared_ptr<DinkyECS::World> world, DinkyECS::Entity boss_id, DinkyECS::Entity player_id);
|
||||
|
||||
void init();
|
||||
void render(sf::RenderWindow& window);
|
||||
void set_window(sf::RenderWindow* window);
|
||||
void render();
|
||||
bool mouse(float x, float y, guecs::Modifiers mods);
|
||||
void status(const std::wstring& msg, const std::wstring &button_msg);
|
||||
void move_actor(const std::string& actor, const std::string& cell_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue