summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
commit0534847df83047f1ce2605187d45a762ffeae11e (patch)
tree92365ee5ec086b3c65f024096df9d63bd05b31d4 /src/resources/beinginfo.h
parent4f390339f8107c376a10151a2cae889c0ec01089 (diff)
downloadplus-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz
plus-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2
plus-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz
plus-0534847df83047f1ce2605187d45a762ffeae11e.zip
Add const to more classes.
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index 5dde6b84e..130cb26ea 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -89,23 +89,24 @@ class BeingInfo
void setTargetCursorSize(const std::string &size);
- void setTargetCursorSize(ActorSprite::TargetCursorSize targetSize)
+ void setTargetCursorSize(const ActorSprite::TargetCursorSize
+ targetSize)
{ mTargetCursorSize = targetSize; }
ActorSprite::TargetCursorSize getTargetCursorSize() const
{ return mTargetCursorSize; }
- void addSound(SoundEvent event, const std::string &filename);
+ void addSound(const SoundEvent event, const std::string &filename);
- const std::string &getSound(SoundEvent event) const;
+ const std::string &getSound(const SoundEvent event) const;
- void addAttack(int id, std::string action,
+ void addAttack(const int id, std::string action,
const std::string &particleEffect,
const std::string &missileParticle);
- const Attack *getAttack(int type) const;
+ const Attack *getAttack(const int type) const;
- void setWalkMask(unsigned char mask)
+ void setWalkMask(const unsigned char mask)
{ mWalkMask = mask; }
/**
@@ -114,25 +115,25 @@ class BeingInfo
unsigned char getWalkMask() const
{ return mWalkMask; }
- void setBlockType(Map::BlockType blockType)
+ void setBlockType(const Map::BlockType blockType)
{ mBlockType = blockType; }
Map::BlockType getBlockType() const
{ return mBlockType; }
- void setTargetOffsetX(int n)
+ void setTargetOffsetX(const int n)
{ mTargetOffsetX = n; }
int getTargetOffsetX() const
{ return mTargetOffsetX; }
- void setTargetOffsetY(int n)
+ void setTargetOffsetY(const int n)
{ mTargetOffsetY = n; }
int getTargetOffsetY() const
{ return mTargetOffsetY; }
- void setMaxHP(int n)
+ void setMaxHP(const int n)
{ mMaxHP = n; }
int getMaxHP() const
@@ -141,10 +142,10 @@ class BeingInfo
bool isStaticMaxHP() const
{ return mStaticMaxHP; }
- void setStaticMaxHP(bool n)
+ void setStaticMaxHP(const bool n)
{ mStaticMaxHP = n; }
- void setTargetSelection(bool n)
+ void setTargetSelection(const bool n)
{ mTargetSelection = n; }
bool isTargetSelection() const