aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/animation.cpp
diff options
context:
space:
mode:
authorlukaslw2014-09-30 15:43:16 +0200
committerlukaslw2014-09-30 15:43:16 +0200
commite1774dc4462332b8345c44c7ebc5d5f7ff722efa (patch)
treeeeaf1690edbcf3f51ec4cf30ed17a27bb0a1a505 /engines/prince/animation.cpp
parentafe47b014a0538171e826c780f198a19df60bd69 (diff)
downloadscummvm-rg350-e1774dc4462332b8345c44c7ebc5d5f7ff722efa.tar.gz
scummvm-rg350-e1774dc4462332b8345c44c7ebc5d5f7ff722efa.tar.bz2
scummvm-rg350-e1774dc4462332b8345c44c7ebc5d5f7ff722efa.zip
PRINCE: countDrawPosition() - clean up
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;
}