summaryrefslogtreecommitdiff
path: root/src/simpleanimation.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-03 23:28:26 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-03 23:41:59 +0200
commitf4e01badebdc5975c9ded35a93f7ac501e4f73c8 (patch)
tree5024e9be339bd47be410278072153c8fd9a1ad8c /src/simpleanimation.h
parent3a274b8e8c1183e2ef37a5ac0d75849db5560fb3 (diff)
downloadmana-f4e01badebdc5975c9ded35a93f7ac501e4f73c8.tar.gz
mana-f4e01badebdc5975c9ded35a93f7ac501e4f73c8.tar.bz2
mana-f4e01badebdc5975c9ded35a93f7ac501e4f73c8.tar.xz
mana-f4e01badebdc5975c9ded35a93f7ac501e4f73c8.zip
Fixed compile warnings and other tweaks
Warnings were about initialization order and signed variables compared to unsigned variables. Please pay attention to these things. Also made some getters const and turned some std::string parameters into const std::string &.
Diffstat (limited to 'src/simpleanimation.h')
-rw-r--r--src/simpleanimation.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/simpleanimation.h b/src/simpleanimation.h
index 508810b1..e1e1f5da 100644
--- a/src/simpleanimation.h
+++ b/src/simpleanimation.h
@@ -50,9 +50,9 @@ class SimpleAnimation
void setFrame(int frame);
- int getLength();
+ int getLength() const;
- void update(unsigned int timePassed);
+ void update(int timePassed);
bool draw(Graphics* graphics, int posX, int posY) const;
@@ -68,10 +68,10 @@ class SimpleAnimation
Animation *mAnimation;
/** Time in game ticks the current frame is shown. */
- unsigned int mAnimationTime;
+ int mAnimationTime;
/** Index of current animation phase. */
- unsigned int mAnimationPhase;
+ int mAnimationPhase;
/** Current animation phase. */
Frame *mCurrentFrame;