summaryrefslogtreecommitdiff
path: root/src/imagesprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-05 12:33:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-05 15:48:51 +0300
commit126b1470842302537b0bc5e4527cf7fd540a9125 (patch)
tree8d98425338e7a7f01add71d762fba147fc097fc2 /src/imagesprite.h
parentf6920653c7a958528df248ff61c372a0bd3d4f1d (diff)
downloadmanaplus-126b1470842302537b0bc5e4527cf7fd540a9125.tar.gz
manaplus-126b1470842302537b0bc5e4527cf7fd540a9125.tar.bz2
manaplus-126b1470842302537b0bc5e4527cf7fd540a9125.tar.xz
manaplus-126b1470842302537b0bc5e4527cf7fd540a9125.zip
Add checks and const to animatedsprites and related classes.
Diffstat (limited to 'src/imagesprite.h')
-rw-r--r--src/imagesprite.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/imagesprite.h b/src/imagesprite.h
index b9eb477d1..294d0264c 100644
--- a/src/imagesprite.h
+++ b/src/imagesprite.h
@@ -40,13 +40,14 @@ public:
bool reset() override
{ return false; }
- bool play(std::string action A_UNUSED) override
+ bool play(const std::string &action A_UNUSED) override
{ return false; }
- bool update(int time A_UNUSED) override
+ bool update(const int time A_UNUSED) override
{ return false; }
- bool draw(Graphics* graphics, int posX, int posY) const override;
+ bool draw(Graphics *const graphics,
+ const int posX, const int posY) const override;
int getWidth() const override A_WARN_UNUSED
{ return mImage ? mImage->getWidth() : 0; }