TITANIC: Add stubs for CEnterNodeMsg message handlers

This commit is contained in:
Paul Gilbert 2016-03-17 22:51:29 -04:00
parent 39a4db06fa
commit 04b8c75a93
11 changed files with 35 additions and 11 deletions

View File

@ -206,6 +206,7 @@
#include "titanic/game/tow_parrot_nav.h"
#include "titanic/game/up_lighter.h"
#include "titanic/game/useless_lever.h"
#include "titanic/game/volume_control.h"
#include "titanic/game/wheel_button.h"
#include "titanic/game/wheel_hotspot.h"
#include "titanic/game/wheel_spin.h"
@ -332,7 +333,6 @@
#include "titanic/gfx/text_skrew.h"
#include "titanic/gfx/text_up.h"
#include "titanic/gfx/toggle_switch.h"
#include "titanic/gfx/volume_control.h"
#include "titanic/messages/messages.h"
#include "titanic/messages/auto_sound_event.h"
@ -613,6 +613,7 @@ DEFFN(CTitaniaStillControl)
DEFFN(CTOWParrotNav)
DEFFN(CUpLighter)
DEFFN(CUselessLever)
DEFFN(CVolumeControl)
DEFFN(CWheelButton)
DEFFN(CWheelHotSpot)
DEFFN(CWheelSpin)
@ -743,7 +744,6 @@ DEFFN(CTextSkrew)
DEFFN(CTextUp)
DEFFN(CToggleButton)
DEFFN(CToggleSwitch)
DEFFN(CVolumeControl)
DEFFN(CActMsg)
DEFFN(CActivationmsg)
@ -1183,6 +1183,7 @@ void CSaveableObject::initClassList() {
ADDFN(CTOWParrotNav, CGameObject);
ADDFN(CUpLighter, CDropTarget);
ADDFN(CUselessLever, CToggleButton);
ADDFN(CVolumeControl, CGameObject);
ADDFN(CWheelButton, CBackground);
ADDFN(CWheelHotSpot, CBackground);
ADDFN(CWheelSpin, CBackground);
@ -1313,7 +1314,6 @@ void CSaveableObject::initClassList() {
ADDFN(CTextUp, CPetGraphic);
ADDFN(CToggleButton, CBackground);
ADDFN(CToggleSwitch, CGameObject);
ADDFN(CVolumeControl, CGameObject);
ADDFN(CActMsg, CMessage);
ADDFN(CActivationmsg, CMessage);

View File

@ -40,4 +40,9 @@ void CDoorbotElevatorHandler::load(SimpleFile *file) {
CGameObject::load(file);
}
bool CDoorbotElevatorHandler::handleEvent(const CEnterNodeMsg &msg) {
warning("CDoorbotElevatorHandler::handleEvent");
return true;
}
} // End of namespace Titanic

View File

@ -24,13 +24,16 @@
#define TITANIC_DOORBOT_ELEVATOR_HANDLER_H
#include "titanic/core/game_object.h"
#include "titanic/messages/messages.h"
namespace Titanic {
class CDoorbotElevatorHandler : public CGameObject {
class CDoorbotElevatorHandler : public CGameObject, CEnterNodeMsgTarget {
private:
static int _v1;
int _value;
protected:
virtual bool handleEvent(const CEnterNodeMsg &msg);
public:
CLASSDEF

View File

@ -28,7 +28,7 @@
namespace Titanic {
class CPhonograph : public CMusicPlayer, CEnterRoomMsgTarget {
class CPhonograph : public CMusicPlayer {
protected:
CString _string2;
int _fieldE0;

View File

@ -28,7 +28,7 @@
namespace Titanic {
class CLiftindicator : public CLift, CEnterRoomMsgTarget {
class CLiftindicator : public CLift {
private:
int _fieldFC;
Common::Point _pos2;

View File

@ -20,7 +20,7 @@
*
*/
#include "titanic/gfx/volume_control.h"
#include "titanic/game/volume_control.h"
namespace Titanic {
@ -45,4 +45,9 @@ void CVolumeControl::load(SimpleFile *file) {
CGameObject::load(file);
}
bool CVolumeControl::handleEvent(const CEnterNodeMsg &msg) {
warning("CVolumeControl::handleEvent");
return true;
}
} // End of namespace Titanic

View File

@ -24,14 +24,17 @@
#define TITANIC_VOLUME_CONTROL_H
#include "titanic/core/game_object.h"
#include "titanic/messages/messages.h"
namespace Titanic {
class CVolumeControl : public CGameObject {
class CVolumeControl : public CGameObject, CEnterNodeMsgTarget {
private:
int _fieldBC;
CString _string1;
int _fieldCC;
protected:
virtual bool handleEvent(const CEnterNodeMsg &msg);
public:
CLASSDEF
CVolumeControl();

View File

@ -208,6 +208,7 @@ MODULE_OBJS := \
game/titania_still_control.o \
game/up_lighter.o \
game/useless_lever.o \
game/volume_control.o \
game/wheel_button.o \
game/wheel_hotspot.o \
game/wheel_spin.o \
@ -328,7 +329,6 @@ MODULE_OBJS := \
gfx/text_up.o \
gfx/toggle_button.o \
gfx/toggle_switch.o \
gfx/volume_control.o \
messages/auto_sound_event.o \
messages/bilge_auto_sound_event.o \
messages/bilge_dispensor_event.o \

View File

@ -36,4 +36,9 @@ void CNodeAutoSoundPlayer::load(SimpleFile *file) {
CAutoSoundPlayer::load(file);
}
bool CNodeAutoSoundPlayer::handleEvent(const CEnterNodeMsg &msg) {
warning("CNodeAutoSoundPlayer::handleEvent");
return true;
}
} // End of namespace Titanic

View File

@ -24,12 +24,15 @@
#define TITANIC_NODE_AUTO_SOUND_PLAYER_H
#include "titanic/sound/auto_sound_player.h"
#include "titanic/messages/messages.h"
namespace Titanic {
class CNodeAutoSoundPlayer : public CAutoSoundPlayer {
class CNodeAutoSoundPlayer : public CAutoSoundPlayer, CEnterNodeMsgTarget {
private:
int _fieldEC;
protected:
virtual bool handleEvent(const CEnterNodeMsg &msg);
public:
CLASSDEF
CNodeAutoSoundPlayer() : CAutoSoundPlayer(), _fieldEC(1) {}

View File

@ -28,7 +28,7 @@
namespace Titanic {
class CRestrictedAutoMusicPlayer : public CAutoMusicPlayer, CEnterRoomMsgTarget {
class CRestrictedAutoMusicPlayer : public CAutoMusicPlayer {
private:
CString _string3;
CString _string4;