summaryrefslogtreecommitdiff
path: root/src/imageparticle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/imageparticle.h')
-rw-r--r--src/imageparticle.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/imageparticle.h b/src/imageparticle.h
index afde7446..0ad515cc 100644
--- a/src/imageparticle.h
+++ b/src/imageparticle.h
@@ -29,12 +29,26 @@
class Image;
class Map;
+/**
+ * A particle that uses an image for its visualization.
+ */
class ImageParticle : public Particle
{
public:
+ /**
+ * Constructor. The image is reference counted by this particle.
+ *
+ * @param map the map this particle appears on
+ * @param image an Image instance, may not be NULL
+ */
ImageParticle(Map *map, Image *image);
/**
+ * Destructor.
+ */
+ ~ImageParticle();
+
+ /**
* Draws the particle image
*/
virtual void