Refactor before working on animations sending events.

This commit is contained in:
Zed A. Shaw 2026-01-06 23:50:03 -05:00
parent 8b1f288fce
commit 63260f01b9
7 changed files with 10 additions and 42 deletions

View file

@ -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));