TITANIC: Make all use of message targets public inheritance

This commit is contained in:
Paul Gilbert 2016-03-24 12:51:44 -04:00
parent 66e198d665
commit d9cc2908f8
28 changed files with 65 additions and 32 deletions

View File

@ -29,8 +29,11 @@
namespace Titanic {
class CViewItem : public CNamedItem, CMouseButtonDownMsgTarget,
CMouseButtonUpMsgTarget, CMouseMoveMsgTarget, CMouseDoubleClickMsgTarget {
class CViewItem : public CNamedItem,
public CMouseButtonDownMsgTarget,
public CMouseButtonUpMsgTarget,
public CMouseMoveMsgTarget,
public CMouseDoubleClickMsgTarget {
private:
CTreeItem *_buttonUpTargets[4];
private:

View File

@ -29,10 +29,14 @@
namespace Titanic {
class CArboretumGate : public CBackground, public CActMsgTarget,
public CLeaveViewMsgTarget, public CTurnOffTarget,
public CMouseButtonDownMsgTarget, public CEnterViewMsgTarget,
public CTurnOnTarget, public CMovieEndMsgTarget {
class CArboretumGate : public CBackground,
public CActMsgTarget,
public CLeaveViewMsgTarget,
public CTurnOffTarget,
public CMouseButtonDownMsgTarget,
public CEnterViewMsgTarget,
public CTurnOnTarget,
public CMovieEndMsgTarget {
private:
static int _v1;
static int _v2;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CBarBell : public CGameObject, CEnterRoomMsgTarget {
class CBarBell : public CGameObject,
public CEnterRoomMsgTarget {
public:
int _fieldBC;
int _fieldC0;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CBomb : public CBackground, CEnterRoomMsgTarget {
class CBomb : public CBackground,
public CEnterRoomMsgTarget {
private:
int _fieldE0;
int _fieldE4;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CChickenCooler : public CGameObject, CEnterRoomMsgTarget {
class CChickenCooler : public CGameObject,
public CEnterRoomMsgTarget {
private:
int _fieldBC;
int _fieldC0;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CDoorbotElevatorHandler : public CGameObject, CEnterNodeMsgTarget {
class CDoorbotElevatorHandler : public CGameObject,
public CEnterNodeMsgTarget {
private:
static int _v1;
int _value;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CEndSequenceControl : public CGameObject, CEnterRoomMsgTarget {
class CEndSequenceControl : public CGameObject,
public CEnterRoomMsgTarget {
protected:
virtual bool handleMessage(CEnterRoomMsg &msg);
public:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CFanNoises : public CGameObject, CEnterRoomMsgTarget {
class CFanNoises : public CGameObject,
public CEnterRoomMsgTarget {
private:
int _fieldBC;
int _fieldC0;

View File

@ -27,7 +27,8 @@
#include "titanic/messages/messages.h"
namespace Titanic {
class CGetLiftEye2 : public CGameObject, CEnterRoomMsgTarget {
class CGetLiftEye2 : public CGameObject,
public CEnterRoomMsgTarget {
private:
static CString *_v1;
protected:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CGondolierMixer : public CGondolierBase, CEnterRoomMsgTarget {
class CGondolierMixer : public CGondolierBase,
public CEnterRoomMsgTarget {
private:
int _fieldBC;
int _fieldC0;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CLight : public CBackground, CEnterRoomMsgTarget {
class CLight : public CBackground,
public CEnterRoomMsgTarget {
private:
int _fieldE0;
int _fieldE4;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CLightSwitch : public CBackground, CEnterRoomMsgTarget {
class CLightSwitch : public CBackground,
public CEnterRoomMsgTarget {
public:
static int _v1;
private:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CPlayerMeetsParrot : public CGameObject, CEnterRoomMsgTarget {
class CPlayerMeetsParrot : public CGameObject,
public CEnterRoomMsgTarget {
protected:
virtual bool handleMessage(CEnterRoomMsg &msg);
public:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CPETMonitor : public CGameObject, CEnterRoomMsgTarget {
class CPETMonitor : public CGameObject,
public CEnterRoomMsgTarget {
protected:
virtual bool handleMessage(CEnterRoomMsg &msg);
public:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CPETPosition : public CGameObject, CEnterRoomMsgTarget {
class CPETPosition : public CGameObject,
public CEnterRoomMsgTarget {
protected:
virtual bool handleMessage(CEnterRoomMsg &msg);
public:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CPETTransport : public CGameObject, CEnterRoomMsgTarget {
class CPETTransport : public CGameObject,
public CEnterRoomMsgTarget {
protected:
virtual bool handleMessage(CEnterRoomMsg &msg);
public:

View File

@ -45,7 +45,8 @@ struct CSGTStateRoomStatics {
int _v14;
};
class CSGTStateRoom : public CBackground, CEnterRoomMsgTarget {
class CSGTStateRoom : public CBackground,
public CEnterRoomMsgTarget {
private:
static CSGTStateRoomStatics *_statics;
private:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CShipSetting : public CBackground, CEnterRoomMsgTarget {
class CShipSetting : public CBackground,
public CEnterRoomMsgTarget {
private:
CString _string3;
Point _pos1;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CLift : public CTransport, CEnterRoomMsgTarget {
class CLift : public CTransport,
public CEnterRoomMsgTarget {
private:
static int _v1;
static int _v2;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CPellerator : public CTransport, CEnterRoomMsgTarget {
class CPellerator : public CTransport,
public CEnterRoomMsgTarget {
private:
static int _v1;
static int _v2;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CUpLighter : public CDropTarget, CEnterRoomMsgTarget {
class CUpLighter : public CDropTarget,
public CEnterRoomMsgTarget {
private:
int _field118;
int _field11C;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CEnterBridge : public CGameObject, CEnterRoomMsgTarget {
class CEnterBridge : public CGameObject,
public CEnterRoomMsgTarget {
private:
int _value;
protected:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CBarbot : public CTrueTalkNPC, CEnterRoomMsgTarget {
class CBarbot : public CTrueTalkNPC,
public CEnterRoomMsgTarget {
private:
static int _v0;
private:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CLiftBot : public CTrueTalkNPC, CEnterRoomMsgTarget {
class CLiftBot : public CTrueTalkNPC,
public CEnterRoomMsgTarget {
private:
static int _v1;
static int _v2;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CAutoMusicPlayer : public CAutoMusicPlayerBase, CEnterRoomMsgTarget {
class CAutoMusicPlayer : public CAutoMusicPlayerBase,
public CEnterRoomMsgTarget {
private:
CString _string2;
protected:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CMusicPlayer : public CGameObject, CEnterRoomMsgTarget {
class CMusicPlayer : public CGameObject,
public CEnterRoomMsgTarget {
protected:
int _fieldBC;
CString _string1;

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CNodeAutoSoundPlayer : public CAutoSoundPlayer, CEnterNodeMsgTarget {
class CNodeAutoSoundPlayer : public CAutoSoundPlayer,
public CEnterNodeMsgTarget {
private:
int _fieldEC;
protected:

View File

@ -28,7 +28,8 @@
namespace Titanic {
class CRoomAutoSoundPlayer : public CAutoSoundPlayer, CEnterRoomMsgTarget {
class CRoomAutoSoundPlayer : public CAutoSoundPlayer,
public CEnterRoomMsgTarget {
protected:
virtual bool handleMessage(CEnterRoomMsg &msg);
public: