diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-14 00:23:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-14 01:32:35 +0300 |
commit | 14d7b12e9e3be7534d6c3683fd391eb28f95cd77 (patch) | |
tree | 1970a9acb175fb6b0020d7915e14ff56bebf3cd1 /src/being/compoundsprite.h | |
parent | 9e77738e7c8a01e343c060a12f0d9d44a96874ed (diff) | |
download | manaplus-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.gz manaplus-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.bz2 manaplus-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.xz manaplus-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.zip |
Split drawSprites in Being/CompoundSprite into drawSprites and drawPlayerSprites.
Diffstat (limited to 'src/being/compoundsprite.h')
-rw-r--r-- | src/being/compoundsprite.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/being/compoundsprite.h b/src/being/compoundsprite.h index a1a0e9742..71a77e87e 100644 --- a/src/being/compoundsprite.h +++ b/src/being/compoundsprite.h @@ -50,10 +50,6 @@ class CompoundSprite notfinal : public Sprite bool update(const int time) override final; - void draw(Graphics *const graphics, - const int posX, - const int posY) const override A_NONNULL(2); - void drawSimple(Graphics *const graphics, const int posX, const int posY) const A_NONNULL(2); @@ -89,9 +85,9 @@ class CompoundSprite notfinal : public Sprite void ensureSize(const size_t layerCount); - virtual void drawSprites(Graphics *const graphics, - const int posX, - const int posY) const; + void drawSprites(Graphics *const graphics, + const int posX, + const int posY) const; virtual void drawSpritesSDL(Graphics *const graphics, const int posX, @@ -112,7 +108,7 @@ class CompoundSprite notfinal : public Sprite std::vector<Sprite*> mSprites; - private: + protected: void redraw() const; void updateImages() const; |