diff options
author | Denis Kasak | 2009-07-07 15:35:35 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-07 15:35:35 +0000 |
commit | 4cfdf8c855143d93185f2d0bc70d06976885da67 (patch) | |
tree | a72151026b45e30f1a9303f582a098011f31eefa | |
parent | 2e552bf643cc5763f32a8ffa16b12af71165186f (diff) | |
download | scummvm-rg350-4cfdf8c855143d93185f2d0bc70d06976885da67.tar.gz scummvm-rg350-4cfdf8c855143d93185f2d0bc70d06976885da67.tar.bz2 scummvm-rg350-4cfdf8c855143d93185f2d0bc70d06976885da67.zip |
Shortened AnimationManager::{play,stop}(). Removed some excessive newlines.
svn-id: r42226
-rw-r--r-- | engines/draci/animation.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp index bb0cb44b10..cfc6619c80 100644 --- a/engines/draci/animation.cpp +++ b/engines/draci/animation.cpp @@ -103,42 +103,34 @@ void Animation::drawFrame(Surface *surface) { } void Animation::setID(int id) { - _id = id; } int Animation::getID() { - return _id; } void Animation::setZ(uint z) { - _z = z; } uint Animation::getZ() { - return _z; } bool Animation::isPlaying() { - return _playing; } void Animation::setPlaying(bool playing) { - _playing = playing; } void Animation::addFrame(Drawable *frame) { - _frames.push_back(frame); } uint Animation::getFramesNum() { - return _frames.size(); } @@ -165,17 +157,11 @@ Animation *AnimationManager::addAnimation(int id, uint z, bool playing) { } void AnimationManager::play(int id) { - - Animation *anim = getAnimation(id); - - anim->setPlaying(true); + getAnimation(id)->setPlaying(true); } void AnimationManager::stop(int id) { - - Animation *anim = getAnimation(id); - - anim->setPlaying(false); + getAnimation(id)->setPlaying(false); } Animation *AnimationManager::getAnimation(int id) { |