aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/objects.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-12 19:55:53 -0400
committerWillem Jan Palenstijn2015-05-13 14:43:50 +0200
commit2db576357f1a697d0a03e9fc32de6604bdf138ef (patch)
tree1a854fb020a0ff7299a65e2b51ea95a9d96bdb13 /engines/sherlock/objects.cpp
parent95212c5f0290b2cbebed6b179efa57397f08b39b (diff)
downloadscummvm-rg350-2db576357f1a697d0a03e9fc32de6604bdf138ef.tar.gz
scummvm-rg350-2db576357f1a697d0a03e9fc32de6604bdf138ef.tar.bz2
scummvm-rg350-2db576357f1a697d0a03e9fc32de6604bdf138ef.zip
SHERLOCK: Rename object loading methods from synchronize to load
Diffstat (limited to 'engines/sherlock/objects.cpp')
-rw-r--r--engines/sherlock/objects.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp
index acb13dd593..b4371cd71b 100644
--- a/engines/sherlock/objects.cpp
+++ b/engines/sherlock/objects.cpp
@@ -365,9 +365,9 @@ void Sprite::checkSprite() {
/*----------------------------------------------------------------*/
/**
- * Synchronize the data for a savegame
+ * Load the data for the action
*/
-void ActionType::synchronize(Common::SeekableReadStream &s) {
+void ActionType::load(Common::SeekableReadStream &s) {
char buffer[12];
_cAnimNum = s.readByte();
@@ -391,9 +391,9 @@ UseType::UseType() {
}
/**
- * Synchronize the data for a savegame
+ * Load the data for the UseType
*/
-void UseType::synchronize(Common::SeekableReadStream &s) {
+void UseType::load(Common::SeekableReadStream &s) {
char buffer[12];
_cAnimNum = s.readByte();
@@ -459,9 +459,9 @@ Object::Object() {
}
/**
- * Load the object data from the passed stream
+ * Load the data for the object
*/
-void Object::synchronize(Common::SeekableReadStream &s) {
+void Object::load(Common::SeekableReadStream &s) {
char buffer[41];
s.read(buffer, 12);
_name = Common::String(buffer);
@@ -504,7 +504,7 @@ void Object::synchronize(Common::SeekableReadStream &s) {
_misc = s.readByte();
_maxFrames = s.readUint16LE();
_flags = s.readByte();
- _aOpen.synchronize(s);
+ _aOpen.load(s);
_aType = (AType)s.readByte();
_lookFrames = s.readByte();
_seqCounter = s.readByte();
@@ -512,18 +512,18 @@ void Object::synchronize(Common::SeekableReadStream &s) {
_lookPosition.y = s.readByte();
_lookFacing = s.readByte();
_lookcAnim = s.readByte();
- _aClose.synchronize(s);
+ _aClose.load(s);
_seqStack = s.readByte();
_seqTo = s.readByte();
_descOffset = s.readUint16LE();
_seqCounter2 = s.readByte();
_seqSize = s.readUint16LE();
s.skip(1);
- _aMove.synchronize(s);
+ _aMove.load(s);
s.skip(8);
for (int idx = 0; idx < 4; ++idx)
- _use[idx].synchronize(s);
+ _use[idx].load(s);
}
/**
@@ -1099,9 +1099,9 @@ const Common::Rect Object::getOldBounds() const {
/*----------------------------------------------------------------*/
/**
- * Synchronize the data for a savegame
+ * Load the data for the animation
*/
-void CAnim::synchronize(Common::SeekableReadStream &s) {
+void CAnim::load(Common::SeekableReadStream &s) {
char buffer[12];
s.read(buffer, 12);
_name = Common::String(buffer);