aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/draci/animation.cpp')
-rw-r--r--engines/draci/animation.cpp68
1 files changed, 0 insertions, 68 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index 1c729e9c85..a0f983100b 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -47,10 +47,6 @@ Animation::~Animation() {
deleteFrames();
}
-bool Animation::isLooping() const {
- return _looping;
-}
-
void Animation::setRelative(int relx, int rely) {
// Delete the previous frame if there is one
if (_frames.size() > 0)
@@ -143,34 +139,6 @@ void Animation::drawFrame(Surface *surface) {
_hasChangedFrame = false;
}
-void Animation::setID(int id) {
- _id = id;
-}
-
-int Animation::getID() const {
- return _id;
-}
-
-void Animation::setZ(uint z) {
- _z = z;
-}
-
-uint Animation::getZ() const {
- return _z;
-}
-
-int Animation::getRelativeX() const {
- return _displacement.relX;
-}
-
-int Animation::getRelativeY() const {
- return _displacement.relY;
-}
-
-bool Animation::isPlaying() const {
- return _playing;
-}
-
void Animation::setPlaying(bool playing) {
_tick = _vm->_system->getMillis();
_playing = playing;
@@ -179,14 +147,6 @@ void Animation::setPlaying(bool playing) {
_hasChangedFrame |= playing;
}
-bool Animation::isPaused() const {
- return _paused;
-}
-
-void Animation::setPaused(bool paused) {
- _paused = paused;
-}
-
void Animation::setScaleFactors(double scaleX, double scaleY) {
debugC(5, kDraciAnimationDebugLevel,
"Setting scaling factors on anim %d (scaleX: %.3f scaleY: %.3f)",
@@ -198,27 +158,11 @@ void Animation::setScaleFactors(double scaleX, double scaleY) {
_displacement.extraScaleY = scaleY;
}
-double Animation::getScaleX() const {
- return _displacement.extraScaleX;
-}
-
-double Animation::getScaleY() const {
- return _displacement.extraScaleY;
-}
-
void Animation::addFrame(Drawable *frame, const SoundSample *sample) {
_frames.push_back(frame);
_samples.push_back(sample);
}
-int Animation::getIndex() const {
- return _index;
-}
-
-void Animation::setIndex(int index) {
- _index = index;
-}
-
Drawable *Animation::getCurrentFrame() {
// If there are no frames stored, return NULL
return _frames.size() > 0 ? _frames[_currentFrame] : NULL;
@@ -229,14 +173,6 @@ Drawable *Animation::getFrame(int frameNum) {
return _frames.size() > 0 ? _frames[frameNum] : NULL;
}
-uint Animation::getFrameCount() const {
- return _frames.size();
-}
-
-uint Animation::currentFrameNum() const {
- return _currentFrame;
-}
-
void Animation::setCurrentFrame(uint frame) {
// Check whether the value is sane
if (frame >= _frames.size()) {
@@ -516,10 +452,6 @@ void AnimationManager::deleteAll() {
_lastIndex = -1;
}
-int AnimationManager::getLastIndex() const {
- return _lastIndex;
-}
-
void AnimationManager::deleteAfterIndex(int index) {
Common::List<Animation *>::iterator it;