summary refs log tree commit diff stats
path: root/src/game.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-01-30 14:43:41 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-01-30 14:43:41 -0500
commit8a38699f399103d4ee003e6eb63dd62656115be2 (patch)
tree765a62bacc24d8a4c57ea56915de6731294c824b /src/game.h
parent2c91a60b5fd79aa2c978ce4496a068f15a4df5cc (diff)
downloadtanetane-8a38699f399103d4ee003e6eb63dd62656115be2.tar.gz
tanetane-8a38699f399103d4ee003e6eb63dd62656115be2.tar.bz2
tanetane-8a38699f399103d4ee003e6eb63dd62656115be2.zip
Sprite animations are more generic than still/walk now
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h4
1 files changed, 2 insertions, 2 deletions
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:
40 40
41 void moveSprite(int id, vec2i newLoc); 41 void moveSprite(int id, vec2i newLoc);
42 42
43 void setSpriteWalking(int id, bool walking) { 43 void setSpriteState(int id, std::string state) {
44 sprites_[id].setWalking(walking); 44 sprites_[id].setState(std::move(state));
45 } 45 }
46 46
47 void setSpriteDirection(int id, Direction dir) { 47 void setSpriteDirection(int id, Direction dir) {