summaryrefslogtreecommitdiff
path: root/src/particleemitter.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 16:21:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 16:35:24 +0300
commite0ae701192472d7dd1ae80d78308c4f4a9ef4ec6 (patch)
tree9765a6516e4a6e284ed7b589090db7f1f4cd80ea /src/particleemitter.h
parent962f182fcc989ec587282e44f889188ce241ba31 (diff)
downloadmanaverse-e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6.tar.gz
manaverse-e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6.tar.bz2
manaverse-e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6.tar.xz
manaverse-e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6.zip
Add const to more classes.
Diffstat (limited to 'src/particleemitter.h')
-rw-r--r--src/particleemitter.h10
1 files changed, 5 insertions, 5 deletions
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<Particle *> createParticles(int tick);
+ std::list<Particle *> 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 <typename T> ParticleEmitterProp<T>