aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/action.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-05-01 22:36:36 -0400
committerPaul Gilbert2014-05-01 22:36:36 -0400
commitb5949010a61e3d12f22ea762ed8d09cc1a79b850 (patch)
tree099a9c3c0a3823c2ea870da5ca58c39ee85155a3 /engines/mads/action.h
parent92ab7e87a0e0afc9db1612b4c7d16597fe6499a0 (diff)
downloadscummvm-rg350-b5949010a61e3d12f22ea762ed8d09cc1a79b850.tar.gz
scummvm-rg350-b5949010a61e3d12f22ea762ed8d09cc1a79b850.tar.bz2
scummvm-rg350-b5949010a61e3d12f22ea762ed8d09cc1a79b850.zip
MADS: Implemented more savegame synchronization
Diffstat (limited to 'engines/mads/action.h')
-rw-r--r--engines/mads/action.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/engines/mads/action.h b/engines/mads/action.h
index 6e51e12483..ac6c35c863 100644
--- a/engines/mads/action.h
+++ b/engines/mads/action.h
@@ -78,6 +78,9 @@ struct ActionDetails {
int _objectNameId;
int _indirectObjectId;
+ /**
+ * Synchronize the action details
+ */
void synchronize(Common::Serializer &s);
};
@@ -91,6 +94,11 @@ struct ActionSavedFields {
int _secondObjectSource;
int _articleNumber;
int _lookFlag;
+
+ /**
+ * Synchronize the saved action details
+ */
+ void synchronize(Common::Serializer &s);
};
class MADSAction {
@@ -117,11 +125,11 @@ public:
PrepType _prepType;
ScrCategory _commandSource;
ScrCategory _mainObjectSource;
- int16 _secondObject;
+ int _secondObject;
ScrCategory _secondObjectSource;
ScrCategory _recentCommandSource;
bool _pointEstablished;
- int16 _recentCommand;
+ int _recentCommand;
InterAwaiting _interAwaiting;
bool _inProgress;
int _pickedWord;
@@ -154,6 +162,11 @@ public:
* Execute a click within the scene
*/
void leftClick();
+
+ /**
+ * Synchronize the saved action details
+ */
+ void synchronize(Common::Serializer &s);
};
} // End of namespace MADS