diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-03 21:58:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-04 03:06:57 +0300 |
commit | 866a71ffd576fd10c4e309195016d86f0c8ed635 (patch) | |
tree | 21bbec175afc181cada529598267d62f12fcb671 /src/statuseffect.h | |
parent | ebecb0cf42f2066943908fa158ac91527e0e6629 (diff) | |
download | manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.gz manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.bz2 manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.xz manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.zip |
Add const to more classes.
Diffstat (limited to 'src/statuseffect.h')
-rw-r--r-- | src/statuseffect.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/statuseffect.h b/src/statuseffect.h index 326a0d3c1..b5df3a45f 100644 --- a/src/statuseffect.h +++ b/src/statuseffect.h @@ -32,34 +32,35 @@ class StatusEffect { public: StatusEffect(); + ~StatusEffect(); /** * Plays the sound effect associated with this status effect, if possible. */ - void playSFX(); + void playSFX() const; /** * Delivers the chat message associated with this status effect, if * possible. */ - void deliverMessage(); + void deliverMessage() const; /** * Creates the particle effect associated with this status effect, if * possible. */ - Particle *getParticle(); + Particle *getParticle() const; /** * Retrieves the status icon for this effect, if applicable */ - AnimatedSprite *getIcon(); + AnimatedSprite *getIcon() const; /** * Retrieves an action to perform, or SpriteAction::INVALID */ - std::string getAction(); + std::string getAction() const; /** * Determines whether the particle effect should be restarted when the @@ -76,7 +77,7 @@ public: * \param enabling Whether to retrieve the activating effect (true) or * the deactivating effect (false). */ - static StatusEffect *getStatusEffect(int index, bool enabling); + static StatusEffect *getStatusEffect(const int index, const bool enabling); /** * Retrieves a stun effect. @@ -94,7 +95,7 @@ public: * * Returns -1 on failure. */ - static int blockEffectIndexToEffectIndex(int blocKIndex); + static int blockEffectIndexToEffectIndex(const int blocKIndex); static void load(); |