diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-06-03 17:42:54 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-06-03 17:42:54 +0000 |
commit | 778ca33725a8bfac629b405f0bd26cfefaf47caf (patch) | |
tree | 0b20376964c8b60f30c2827b1790cb038740a00b /src/imageparticle.h | |
parent | 6276c1ff96e449e73e84977110334cd8957c31b6 (diff) | |
download | mana-778ca33725a8bfac629b405f0bd26cfefaf47caf.tar.gz mana-778ca33725a8bfac629b405f0bd26cfefaf47caf.tar.bz2 mana-778ca33725a8bfac629b405f0bd26cfefaf47caf.tar.xz mana-778ca33725a8bfac629b405f0bd26cfefaf47caf.zip |
Have ParticleEmitter load a possible particle image early on and don't cause a
crash when the image can't be found.
Diffstat (limited to 'src/imageparticle.h')
-rw-r--r-- | src/imageparticle.h | 14 |
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 |