aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-07-07 15:35:35 +0000
committerDenis Kasak2009-07-07 15:35:35 +0000
commit4cfdf8c855143d93185f2d0bc70d06976885da67 (patch)
treea72151026b45e30f1a9303f582a098011f31eefa
parent2e552bf643cc5763f32a8ffa16b12af71165186f (diff)
downloadscummvm-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.cpp18
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) {