summaryrefslogtreecommitdiff
path: root/src/imagesprite.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-06-08 21:55:16 -0600
committerJared Adams <jaxad0127@gmail.com>2010-06-09 00:00:53 -0600
commitec980b3c586fc64d02ad02f31497013908056d52 (patch)
treec8a5c573bf8fc5ed2151f32cb7f8468bba31d72a /src/imagesprite.h
parent891d14807cd042aa90aed94558c2c8eda66d6859 (diff)
downloadmana-ec980b3c586fc64d02ad02f31497013908056d52.tar.gz
mana-ec980b3c586fc64d02ad02f31497013908056d52.tar.bz2
mana-ec980b3c586fc64d02ad02f31497013908056d52.tar.xz
mana-ec980b3c586fc64d02ad02f31497013908056d52.zip
Remove hard-coded frame counts from Being class
Also removes the Monster/Player difference in tmwAthena's Being::logic and moves the particle code from Being::setAttack to Being::Logic for tmwAthena. Reviewed-by: Chuck Miller
Diffstat (limited to 'src/imagesprite.h')
-rw-r--r--src/imagesprite.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/imagesprite.h b/src/imagesprite.h
index 20f9fbef..8a195b8c 100644
--- a/src/imagesprite.h
+++ b/src/imagesprite.h
@@ -34,24 +34,24 @@ public:
~ImageSprite();
- virtual bool reset()
+ bool reset()
{ return false; }
- virtual bool play(SpriteAction action)
+ bool play(SpriteAction action)
{ return false; }
- virtual bool update(int time)
+ bool update(int time)
{ return false; }
- virtual bool draw(Graphics* graphics, int posX, int posY) const;
+ bool draw(Graphics* graphics, int posX, int posY) const;
- virtual int getWidth() const
+ int getWidth() const
{ return mImage->getWidth(); }
- virtual int getHeight() const
+ int getHeight() const
{ return mImage->getHeight(); }
- virtual const Image* getImage() const
+ const Image* getImage() const
{ return mImage; }
virtual bool setDirection(SpriteDirection direction)
@@ -60,6 +60,12 @@ public:
int getNumberOfLayers()
{ return 1; }
+ size_t getCurrentFrame() const
+ { return 0; }
+
+ size_t getFrameCount() const
+ { return 1; }
+
private:
Image *mImage;
};