summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-05 23:41:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-05 23:41:50 +0300
commit98fff0b1a6fc9103759855e888b6be241fcb8510 (patch)
tree168edf43c65ba2fdaa2667424854009c2fc0b7dc /src/being.h
parent126b1470842302537b0bc5e4527cf7fd540a9125 (diff)
downloadplus-98fff0b1a6fc9103759855e888b6be241fcb8510.tar.gz
plus-98fff0b1a6fc9103759855e888b6be241fcb8510.tar.bz2
plus-98fff0b1a6fc9103759855e888b6be241fcb8510.tar.xz
plus-98fff0b1a6fc9103759855e888b6be241fcb8510.zip
Add missing checks to being class.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/being.h b/src/being.h
index 384741afe..32508670b 100644
--- a/src/being.h
+++ b/src/being.h
@@ -605,10 +605,10 @@ class Being : public ActorSprite, public ConfigListener
int getEmotion() const A_WARN_UNUSED
{ return mEmotion; }
- virtual void drawSprites(Graphics* graphics,
+ virtual void drawSprites(Graphics *const graphics,
int posX, int posY) const override;
- virtual void drawSpritesSDL(Graphics* graphics,
+ virtual void drawSpritesSDL(Graphics *const graphics,
int posX, int posY) const override;
void drawHpBar(Graphics *const graphics, const int x, const int y,
@@ -677,7 +677,7 @@ class Being : public ActorSprite, public ConfigListener
bool canTalk() const A_WARN_UNUSED
{ return mType == NPC; }
- void talkTo();
+ void talkTo() const;
bool draw(Graphics *const graphics,
const int offsetX, const int offsetY) const override;
@@ -873,6 +873,8 @@ class Being : public ActorSprite, public ConfigListener
void showName();
+ static int getDefaultEffectId(const int type);
+
BeingInfo *mInfo;
int mActionTime; /**< Time spent in current action */
@@ -939,14 +941,14 @@ class Being : public ActorSprite, public ConfigListener
int getOffset(const signed char pos,
const signed char neg) const A_WARN_UNUSED;
- int searchSlotValue(std::vector<int> &slotRemap,
+ int searchSlotValue(const std::vector<int> &slotRemap,
const int val) const A_WARN_UNUSED;
void searchSlotValueItr(std::vector<int>::iterator &it, int &idx,
std::vector<int> &slotRemap,
const int val) const;
- void dumpSprites();
+ void dumpSprites() const;
const Type mType;