From e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Sep 2012 16:21:43 +0300 Subject: Add const to more classes. --- src/particleemitter.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/particleemitter.h') diff --git a/src/particleemitter.h b/src/particleemitter.h index faa54dd12..17d388f82 100644 --- a/src/particleemitter.h +++ b/src/particleemitter.h @@ -43,8 +43,8 @@ class Particle; class ParticleEmitter { public: - ParticleEmitter(XmlNodePtr emitterNode, Particle *target, Map *map, - int rotation = 0, + ParticleEmitter(const XmlNodePtr emitterNode, Particle *const target, + Map *const map, const int rotation = 0, const std::string& dyePalettes = std::string()); /** @@ -66,19 +66,19 @@ class ParticleEmitter * Spawns new particles * @return: a list of created particles */ - std::list createParticles(int tick); + std::list createParticles(const int tick); /** * Sets the target of the particles that are created */ - void setTarget(Particle *target) + void setTarget(Particle *const target) { mParticleTarget = target; }; /** * Changes the size of the emitter so that the effect fills a * rectangle of this size */ - void adjustSize(int w, int h); + void adjustSize(const int w, const int h); private: template ParticleEmitterProp -- cgit v1.2.3-70-g09d2