summaryrefslogtreecommitdiff
path: root/src/resources/action.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/action.h')
-rw-r--r--src/resources/action.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/action.h b/src/resources/action.h
index 92fadfc89..64d8b40d8 100644
--- a/src/resources/action.h
+++ b/src/resources/action.h
@@ -23,6 +23,8 @@
#ifndef RESOURCES_ACTION_H
#define RESOURCES_ACTION_H
+#include "resources/spritedef.h"
+
#include <map>
#include "localconsts.h"
@@ -41,10 +43,10 @@ class Action final
~Action();
- void setAnimation(const int direction,
+ void setAnimation(const SpriteDirection direction,
Animation *const animation) noexcept;
- const Animation *getAnimation(int direction) const
+ const Animation *getAnimation(SpriteDirection direction) const
noexcept A_WARN_UNUSED;
unsigned getNumber() const noexcept A_WARN_UNUSED