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, 5 insertions, 1 deletions
diff --git a/src/resources/action.h b/src/resources/action.h
index 6cf4ed0d0..e6762302f 100644
--- a/src/resources/action.h
+++ b/src/resources/action.h
@@ -39,7 +39,7 @@ class Animation;
class Action final : public MemoryCounter
{
public:
- Action() noexcept;
+ Action(const std::string &name) noexcept;
A_DELETE_COPY(Action)
@@ -63,12 +63,16 @@ class Action final : public MemoryCounter
int calcMemoryChilds(const int level) const override final;
+ std::string getCounterName() const override
+ { return mCounterName; }
+
protected:
typedef std::map<SpriteDirection::Type, Animation*> Animations;
typedef Animations::iterator AnimationIter;
typedef Animations::const_iterator AnimationCIter;
Animations mAnimations;
+ std::string mCounterName;
unsigned mNumber;
};