aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/messages/pet_messages.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-06 19:12:49 -0500
committerPaul Gilbert2016-03-06 19:12:49 -0500
commit7375394b810f3503f168d5770555aa1932d7892d (patch)
tree420e42cc4b5bc3b9a445e7a397fa26765bc62191 /engines/titanic/messages/pet_messages.h
parentf423d4d41a0d94067162acf868bc7eba99cd3e17 (diff)
downloadscummvm-rg350-7375394b810f3503f168d5770555aa1932d7892d.tar.gz
scummvm-rg350-7375394b810f3503f168d5770555aa1932d7892d.tar.bz2
scummvm-rg350-7375394b810f3503f168d5770555aa1932d7892d.zip
TITANIC: Converting saveable objects hierarchy to have type data
This is necessary for at least message sending, and probably other areas, that needs to be able to pass class filtering for message targets. And I could figure out a clean way to use the built-in RTTI
Diffstat (limited to 'engines/titanic/messages/pet_messages.h')
-rw-r--r--engines/titanic/messages/pet_messages.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/engines/titanic/messages/pet_messages.h b/engines/titanic/messages/pet_messages.h
index 96e52eb61c..195bf8a0d2 100644
--- a/engines/titanic/messages/pet_messages.h
+++ b/engines/titanic/messages/pet_messages.h
@@ -27,20 +27,20 @@
namespace Titanic {
-RAW_MESSAGE(CPETDeliverMsg);
-RAW_MESSAGE(CPETGainedObjectMsg);
-RAW_MESSAGE(CPETHelmetOnOffMsg);
-RAW_MESSAGE(CPETKeyboardOnOffMsg);
-RAW_MESSAGE(CPETLostObjectMsg);
-RAW_MESSAGE(CPETObjectSelectedMsg);
-NUM_MESSAGE(CPETObjectStateMsg, _value);
-RAW_MESSAGE(CPETPhotoOnOffMsg);
-NUM_MESSAGE(CPETPlaySoundMsg, _value);
-RAW_MESSAGE(CPETReceiveMsg);
-RAW_MESSAGE(CPETSetStarDestinationMsg);
-NUM_MESSAGE(CPETStarFieldLockMsg, _value);
-RAW_MESSAGE(CPETStereoFieldOnOffMsg);
-SNUM_MESSAGE_VAL(CPETTargetMsg, _strValue, _numValue, (const char *)nullptr, -1);
+MESSAGE0(CPETDeliverMsg);
+MESSAGE0(CPETGainedObjectMsg);
+MESSAGE0(CPETHelmetOnOffMsg);
+MESSAGE0(CPETKeyboardOnOffMsg);
+MESSAGE0(CPETLostObjectMsg);
+MESSAGE0(CPETObjectSelectedMsg);
+MESSAGE1(CPETObjectStateMsg, int, value, 0);
+MESSAGE0(CPETPhotoOnOffMsg);
+MESSAGE1(CPETPlaySoundMsg, int, value, 0);
+MESSAGE0(CPETReceiveMsg);
+MESSAGE0(CPETSetStarDestinationMsg);
+MESSAGE1(CPETStarFieldLockMsg, int, value, 0);
+MESSAGE0(CPETStereoFieldOnOffMsg);
+MESSAGE2(CPETTargetMsg, CString, strValue, nullptr, int, numValue, -1);
} // End of namespace Titanic