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/being.h | |
parent | 9e77738e7c8a01e343c060a12f0d9d44a96874ed (diff) | |
download | plus-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.gz plus-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.bz2 plus-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.xz plus-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.zip |
Split drawSprites in Being/CompoundSprite into drawSprites and drawPlayerSprites.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/being/being.h b/src/being/being.h index ba392d385..23c7fd7e0 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -521,10 +521,10 @@ class Being notfinal : public ActorSprite, void setState(const uint8_t state) restrict2; - virtual void drawSprites(Graphics *restrict const graphics, - const int posX, - const int posY) const - restrict2 override final A_NONNULL(2); + void drawPlayerSprites(Graphics *restrict const graphics, + const int posX, + const int posY) const + restrict2 A_NONNULL(2); virtual void drawSpritesSDL(Graphics *restrict const graphics, const int posX, @@ -1019,6 +1019,10 @@ class Being notfinal : public ActorSprite, const int x, const int y) const restrict2 A_NONNULL(2); + void drawCompound(Graphics *const graphics, + const int posX, + const int posY) const A_NONNULL(2); + /** * Updates name's location. */ @@ -1166,9 +1170,8 @@ class Being notfinal : public ActorSprite, int mX; // position in tiles int mY; // position in tiles - int mSortOffsetY; // caculated offset in pixels based on mOffsetY - // +++ need change name for fix conflict with CompoundSprite::mOffsetY - int mOffsetY; // tile height offset in pixels + int mSortOffsetY; // caculated offset in pixels based on mPixelOffsetY + int mPixelOffsetY; // tile height offset in pixels // calculated between tiles int mFixedOffsetY; // fixed tile height offset in pixels for tile uint8_t mOldHeight; |