summaryrefslogtreecommitdiff
path: root/src/particle
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle')
-rw-r--r--src/particle/animationparticle.h8
-rw-r--r--src/particle/imageparticle.h3
-rw-r--r--src/particle/particle.h1
-rw-r--r--src/particle/rotationalparticle.h8
4 files changed, 9 insertions, 11 deletions
diff --git a/src/particle/animationparticle.h b/src/particle/animationparticle.h
index eb864ea86..55f314994 100644
--- a/src/particle/animationparticle.h
+++ b/src/particle/animationparticle.h
@@ -28,16 +28,16 @@
#include "utils/xml.h"
class Animation;
-class Map;
class SimpleAnimation;
class AnimationParticle final : public ImageParticle
{
public:
- AnimationParticle(Animation *const animation);
+ explicit AnimationParticle(Animation *const animation);
- AnimationParticle(XmlNodePtr const animationNode,
- const std::string& dyePalettes = std::string());
+ explicit AnimationParticle(XmlNodePtr const animationNode,
+ const std::string& dyePalettes
+ = std::string());
A_DELETE_COPY(AnimationParticle)
diff --git a/src/particle/imageparticle.h b/src/particle/imageparticle.h
index 26a5ac651..c05b2316e 100644
--- a/src/particle/imageparticle.h
+++ b/src/particle/imageparticle.h
@@ -28,7 +28,6 @@
#include <map>
class Image;
-class Map;
/**
* A particle that uses an image for its visualization.
@@ -42,7 +41,7 @@ class ImageParticle : public Particle
* @param map the map this particle appears on
* @param image an Image instance, may not be NULL
*/
- ImageParticle(Image *const image);
+ explicit ImageParticle(Image *const image);
A_DELETE_COPY(ImageParticle)
diff --git a/src/particle/particle.h b/src/particle/particle.h
index a22fe7041..42dd31e15 100644
--- a/src/particle/particle.h
+++ b/src/particle/particle.h
@@ -30,7 +30,6 @@
#include <list>
#include <string>
-class Map;
class Particle;
class ParticleEmitter;
diff --git a/src/particle/rotationalparticle.h b/src/particle/rotationalparticle.h
index 6f07f51d5..fcc7e4b07 100644
--- a/src/particle/rotationalparticle.h
+++ b/src/particle/rotationalparticle.h
@@ -28,16 +28,16 @@
#include "utils/xml.h"
class Animation;
-class Map;
class SimpleAnimation;
class RotationalParticle final : public ImageParticle
{
public:
- RotationalParticle(Animation *const animation);
+ explicit RotationalParticle(Animation *const animation);
- RotationalParticle(const XmlNodePtr animationNode,
- const std::string& dyePalettes = std::string());
+ explicit RotationalParticle(const XmlNodePtr animationNode,
+ const std::string& dyePalettes
+ = std::string());
A_DELETE_COPY(RotationalParticle)