summaryrefslogtreecommitdiff
path: root/src/resources/animation/animation.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-26 01:24:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-26 01:24:16 +0300
commitec6bfe238af2f846a5948e95b1d725cf9abe9afb (patch)
tree0be19bc199cd66bd6949befe86c844dbad62de3b /src/resources/animation/animation.h
parent81dca73da50d8f421a74993de8cd5a9d61ef1e2a (diff)
downloadmanaverse-ec6bfe238af2f846a5948e95b1d725cf9abe9afb.tar.gz
manaverse-ec6bfe238af2f846a5948e95b1d725cf9abe9afb.tar.bz2
manaverse-ec6bfe238af2f846a5948e95b1d725cf9abe9afb.tar.xz
manaverse-ec6bfe238af2f846a5948e95b1d725cf9abe9afb.zip
Add memory count functions into Action and Animation.
Diffstat (limited to 'src/resources/animation/animation.h')
-rw-r--r--src/resources/animation/animation.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/animation/animation.h b/src/resources/animation/animation.h
index 765e687d4..dc44a3f0d 100644
--- a/src/resources/animation/animation.h
+++ b/src/resources/animation/animation.h
@@ -24,6 +24,7 @@
#define RESOURCES_ANIMATION_ANIMATION_H
#include "resources/frame.h"
+#include "resources/memorycounter.h"
#include <vector>
@@ -35,7 +36,7 @@ class Image;
* An animation consists of several frames, each with their own delay and
* offset.
*/
-class Animation final
+class Animation final : public MemoryCounter
{
friend class AnimatedSprite;
friend class ParticleEmitter;
@@ -82,6 +83,8 @@ class Animation final
{ return mFrames; }
#endif
+ int calcMemoryLocal() override final;
+
/**
* Determines whether the given animation frame is a terminator.
*/