From 8a38699f399103d4ee003e6eb63dd62656115be2 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 30 Jan 2021 14:43:41 -0500 Subject: Sprite animations are more generic than still/walk now --- src/game.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index a8626fa..274ef2e 100644 --- a/src/game.h +++ b/src/game.h @@ -40,8 +40,8 @@ public: void moveSprite(int id, vec2i newLoc); - void setSpriteWalking(int id, bool walking) { - sprites_[id].setWalking(walking); + void setSpriteState(int id, std::string state) { + sprites_[id].setState(std::move(state)); } void setSpriteDirection(int id, Direction dir) { -- cgit 1.4.1