Refactor before working on animations sending events.
This commit is contained in:
parent
8b1f288fce
commit
63260f01b9
7 changed files with 10 additions and 42 deletions
|
|
@ -78,7 +78,9 @@ namespace boss {
|
|||
$actions.render(*$window);
|
||||
$combat_ui.render(*$window);
|
||||
|
||||
$arena.play_animations();
|
||||
$arena.render($view_texture);
|
||||
|
||||
$view_texture.display();
|
||||
$window->draw($view_sprite);
|
||||
}
|
||||
|
|
@ -102,10 +104,6 @@ namespace boss {
|
|||
$arena.animate_actor(actor);
|
||||
}
|
||||
|
||||
void UI::play_animations() {
|
||||
$arena.play_animations();
|
||||
}
|
||||
|
||||
void UI::damage(const string& actor, const std::string& target, int amount) {
|
||||
if(amount > 0) {
|
||||
$arena.attach_text(target, fmt::format("{}", amount));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue