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.cpp | |
parent | 9e77738e7c8a01e343c060a12f0d9d44a96874ed (diff) | |
download | mv-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.gz mv-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.bz2 mv-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.tar.xz mv-14d7b12e9e3be7534d6c3683fd391eb28f95cd77.zip |
Split drawSprites in Being/CompoundSprite into drawSprites and drawPlayerSprites.
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r-- | src/being/compoundsprite.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp index 2af54f247..af2e60d55 100644 --- a/src/being/compoundsprite.cpp +++ b/src/being/compoundsprite.cpp @@ -136,33 +136,6 @@ bool CompoundSprite::update(const int time) return ret; } -void CompoundSprite::draw(Graphics *const graphics, - const int posX, - const int posY) const -{ - FUNC_BLOCK("CompoundSprite::draw", 1) - if (mNeedsRedraw) - updateImages(); - - if (mSprites.empty()) // Nothing to draw - return; - - if (mAlpha == 1.0F && mImage) - { - graphics->drawImage(mImage, posX + mOffsetX, posY + mOffsetY); - } - else if (mAlpha && mAlphaImage) - { - mAlphaImage->setAlpha(mAlpha); - graphics->drawImage(mAlphaImage, - posX + mOffsetX, posY + mOffsetY); - } - else - { - drawSprites(graphics, posX, posY); - } -} - void CompoundSprite::drawSimple(Graphics *const graphics, const int posX, const int posY) const |