From 98fff0b1a6fc9103759855e888b6be241fcb8510 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Feb 2013 23:41:50 +0300 Subject: Add missing checks to being class. --- src/being.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/being.h') 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 &slotRemap, + int searchSlotValue(const std::vector &slotRemap, const int val) const A_WARN_UNUSED; void searchSlotValueItr(std::vector::iterator &it, int &idx, std::vector &slotRemap, const int val) const; - void dumpSprites(); + void dumpSprites() const; const Type mType; -- cgit v1.2.3-60-g2f50