BossFightUI now gets everything from a world and will be implemented like the rest of the game, but as a mini game.
This commit is contained in:
parent
ca18422930
commit
6e8aa48332
4 changed files with 34 additions and 25 deletions
|
@ -19,19 +19,19 @@ namespace gui {
|
|||
public:
|
||||
sf::Clock $clock;
|
||||
bool $boss_hit = false;
|
||||
std::string $weapon_hit_sound;
|
||||
components::Combat $combat;
|
||||
components::Sprite $sprite_config;
|
||||
components::Sound $sounds;
|
||||
components::Animation $animation;
|
||||
components::GameConfig& $config;
|
||||
std::string $boss_name;
|
||||
guecs::UI $status;
|
||||
guecs::UI $overlay;
|
||||
textures::SpriteTexture $boss_image;
|
||||
textures::SpriteTexture $boss_background;
|
||||
std::shared_ptr<DinkyECS::World> $world = nullptr;
|
||||
DinkyECS::Entity $boss_id;
|
||||
components::GameConfig& $config;
|
||||
|
||||
BossFightUI(DinkyECS::World& world, std::string boss_name);
|
||||
BossFightUI(std::shared_ptr<DinkyECS::World> world, DinkyECS::Entity boss_id);
|
||||
|
||||
void init();
|
||||
void render(sf::RenderWindow& window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue