summaryrefslogtreecommitdiff
path: root/src/animationparticle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/animationparticle.h')
-rw-r--r--src/animationparticle.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/animationparticle.h b/src/animationparticle.h
index 16cc12a5..230d4e7d 100644
--- a/src/animationparticle.h
+++ b/src/animationparticle.h
@@ -23,27 +23,28 @@
#define ANIMATION_PARTICLE_H
#include "imageparticle.h"
+#include "simpleanimation.h"
#include <libxml/tree.h>
-class Animation;
+#include <memory>
+
class Map;
-class SimpleAnimation;
class AnimationParticle : public ImageParticle
{
public:
- AnimationParticle(Map *map, Animation *animation);
+ AnimationParticle(Map *map, Animation animation);
AnimationParticle(Map *map, xmlNodePtr animationNode,
- const std::string& dyePalettes = std::string());
+ const std::string &dyePalettes = std::string());
~AnimationParticle() override;
bool update() override;
private:
- SimpleAnimation *mAnimation; /**< Used animation for this particle */
+ SimpleAnimation mAnimation; /**< Used animation for this particle */
};
#endif