aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/prince/animation.cpp')
-rw-r--r--engines/prince/animation.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/engines/prince/animation.cpp b/engines/prince/animation.cpp
index db16adacbc..b594ff47d1 100644
--- a/engines/prince/animation.cpp
+++ b/engines/prince/animation.cpp
@@ -28,7 +28,7 @@
namespace Prince {
-Animation::Animation() : _idXDiff(0), _idYDiff(0), _loopCount(0), _phaseCount(0), _frameCount(0), _baseX(0), _baseY(0)
+Animation::Animation() : _loopCount(0), _phaseCount(0), _frameCount(0), _baseX(0), _baseY(0)
{
}
@@ -50,8 +50,7 @@ void Animation::clear() {
}
bool Animation::loadFromStream(Common::SeekableReadStream &stream) {
- _idXDiff = stream.readByte();
- _idYDiff = stream.readByte();
+ stream.skip(2); // skip not used x and y coord diff
_loopCount = stream.readUint16LE();
_phaseCount = stream.readUint16LE();
stream.skip(2); // skip _frameCount here
@@ -109,21 +108,6 @@ bool Animation::loadFromStream(Common::SeekableReadStream &stream) {
return true;
}
-bool Animation::testId() const {
- if (_idXDiff == 'A' && _idYDiff == 'N') {
- return true;
- }
- return false;
-}
-
-int8 Animation::getIdXDiff() const {
- return _idXDiff;
-}
-
-int8 Animation::getIdYDiff() const {
- return _idYDiff;
-}
-
int16 Animation::getLoopCount() const {
return _loopCount;
}