aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/carry/phonograph_cylinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/carry/phonograph_cylinder.cpp')
-rw-r--r--engines/titanic/carry/phonograph_cylinder.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/engines/titanic/carry/phonograph_cylinder.cpp b/engines/titanic/carry/phonograph_cylinder.cpp
index fb58c3214f..18e646d2bb 100644
--- a/engines/titanic/carry/phonograph_cylinder.cpp
+++ b/engines/titanic/carry/phonograph_cylinder.cpp
@@ -21,9 +21,18 @@
*/
#include "titanic/carry/phonograph_cylinder.h"
+#include "titanic/game/phonograph.h"
namespace Titanic {
+BEGIN_MESSAGE_MAP(CPhonographCylinder, CCarry)
+ ON_MESSAGE(UseWithOtherMsg)
+ ON_MESSAGE(QueryCylinderMsg)
+ ON_MESSAGE(RecordOntoCylinderMsg)
+ ON_MESSAGE(SetMusicControlsMsg)
+ ON_MESSAGE(ErasePhonographCylinderMsg)
+END_MESSAGE_MAP()
+
CPhonographCylinder::CPhonographCylinder() : CCarry(),
_field138(0), _field13C(0), _field140(0), _field144(0),
_field148(0), _field14C(0), _field150(0), _field154(0),
@@ -86,4 +95,30 @@ void CPhonographCylinder::load(SimpleFile *file) {
CCarry::load(file);
}
+bool CPhonographCylinder::UseWithOtherMsg(CUseWithOtherMsg *msg) {
+ CPhonograph *phonograph = static_cast<CPhonograph *>(msg->_other);
+ if (phonograph) {
+ CSetVarMsg varMsg("m_RecordStatus", 1);
+ return true;
+ } else {
+ return CCarry::UseWithOtherMsg(msg);
+ }
+}
+
+bool CPhonographCylinder::QueryCylinderMsg(CQueryCylinderMsg *msg) {
+ msg->_
+}
+
+bool CPhonographCylinder::RecordOntoCylinderMsg(CRecordOntoCylinderMsg *msg) {
+
+}
+
+bool CPhonographCylinder::SetMusicControlsMsg(CSetMusicControlsMsg *msg) {
+
+}
+
+bool CPhonographCylinder::ErasePhonographCylinderMsg(CErasePhonographCylinderMsg *msg) {
+
+}
+
} // End of namespace Titanic