TITANIC: Set up empty message targets for classes without messages

This commit is contained in:
Paul Gilbert 2016-06-28 21:18:13 -04:00
parent 0715be7926
commit 5c2a39e74a
131 changed files with 323 additions and 60 deletions

View File

@ -123,7 +123,7 @@ bool CBrain::PassOnDragStartMsg(CPassOnDragStartMsg *msg) {
bool CBrain::PETGainedObjectMsg(CPETGainedObjectMsg *msg) {
if (!_field138) {
if (getName() == "Perch") {
incState38();
stateInc38();
_field138 = 1;
}
}

View File

@ -24,8 +24,7 @@
namespace Titanic {
BEGIN_MESSAGE_MAP(CFeathers, CCarry)
END_MESSAGE_MAP()
EMPTY_MESSAGE_MAP(CFeathers, CCarry)
CFeathers::CFeathers() : CCarry() {
}

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CHoseEnd, CHose)
CHoseEnd::CHoseEnd() : CHose() {
_string6 = "Connection refused by remote hose.";
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CHoseEnd : public CHose {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CHoseEnd();

View File

@ -24,8 +24,7 @@
namespace Titanic {
BEGIN_MESSAGE_MAP(CParcel, CCarry)
END_MESSAGE_MAP()
EMPTY_MESSAGE_MAP(CParcel, CCarry)
CParcel::CParcel() : CCarry() {
}

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CDontSaveFileItem, CFileItem)
void CDontSaveFileItem::save(SimpleFile *file, int indent) const {
file->writeNumberLine(0, indent);
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CDontSaveFileItem : public CFileItem {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CFileItem, CTreeItem)
void CFileItem::save(SimpleFile *file, int indent) const {
file->writeNumberLine(0, indent);
CTreeItem::save(file, indent);

View File

@ -30,6 +30,7 @@
namespace Titanic {
class CFileItem: public CTreeItem {
DECLARE_MESSAGE_MAP
private:
CString _filename;
public:

View File

@ -35,8 +35,7 @@
namespace Titanic {
BEGIN_MESSAGE_MAP(CGameObject, CNamedItem)
END_MESSAGE_MAP()
EMPTY_MESSAGE_MAP(CGameObject, CNamedItem)
CCreditText *CGameObject::_credits;
@ -424,6 +423,10 @@ void CGameObject::soundFn5(int v1, int v2, int v3) {
warning("CGameObject::soundFn5");
}
void CGameObject::sound8(bool flag) const {
getGameManager()->_sound.managerProc8(flag ? 3 : 0);
}
void CGameObject::setVisible(bool val) {
if (val != _visible) {
_visible = val;
@ -582,10 +585,6 @@ int CGameObject::getSurface45() const {
return _surface ? _surface->proc45() : 0;
}
void CGameObject::sound8(bool flag) const {
getGameManager()->_sound.managerProc8(flag ? 3 : 0);
}
void CGameObject::loadSound(const CString &name) {
CGameManager *gameManager = getGameManager();
if (gameManager) {
@ -855,15 +854,11 @@ void CGameObject::moveToView(const CString &name) {
view->addUnder(this);
}
void CGameObject::incState38() {
getGameManager()->_gameState.inc38();
}
void CGameObject::stateInc14() {
getGameManager()->_gameState.inc14();
}
int CGameObject::stateGet14() {
int CGameObject::stateGet14() const {
return getGameManager()->_gameState._field14;
}
@ -871,10 +866,22 @@ void CGameObject::stateSet24() {
getGameManager()->_gameState.set24(1);
}
int CGameObject::stateGet24() {
int CGameObject::stateGet24() const {
return getGameManager()->_gameState.get24();
}
void CGameObject::stateInc38() {
getGameManager()->_gameState.inc38();
}
int CGameObject::stateGet38() const {
return getGameManager()->_gameState._field38;
}
void CGameObject::quitGame() {
getGameManager()->_gameState._quitGame = true;
}
void CGameObject::inc54() {
getGameManager()->inc54();
}

View File

@ -201,6 +201,8 @@ protected:
void soundFn5(int v1, int v2, int v3);
void sound8(bool flag) const;
/**
* Adds a timer
*/
@ -287,8 +289,6 @@ protected:
*/
Point getControid() const;
void sound8(bool flag) const;
/**
* Plays a movie
*/
@ -440,11 +440,17 @@ protected:
void petUnlockInput();
void setState1C(bool flag);
void incState38();
void stateInc14();
int stateGet14();
int stateGet14() const;
void stateSet24();
int stateGet24();
int stateGet24() const;
void stateInc38();
int stateGet38() const;
/**
* Flag to quit the game
*/
void quitGame();
void surface39(int v1, int v2);

View File

@ -27,6 +27,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CLinkItem, CNamedItem)
CLinkItem::CLinkItem() : CNamedItem() {
_roomNumber = -1;
_nodeNumber = -1;

View File

@ -34,6 +34,7 @@ class CNodeItem;
class CRoomItem;
class CLinkItem : public CNamedItem {
DECLARE_MESSAGE_MAP
private:
/**
* Returns a new name for the link item, based on the

View File

@ -68,6 +68,21 @@ protected: \
return &messageMap; \
}
#define EMPTY_MESSAGE_MAP(theClass, baseClass) \
const MSGMAP *theClass::getMessageMap() const \
{ return getThisMessageMap(); } \
const MSGMAP *theClass::getThisMessageMap() \
{ \
typedef theClass ThisClass; \
typedef baseClass TheBaseClass; \
static const MSGMAP_ENTRY _messageEntries[] = { \
{ (PMSG)nullptr, nullptr } \
}; \
static const MSGMAP messageMap = \
{ &TheBaseClass::getThisMessageMap, &_messageEntries[0] }; \
return &messageMap; \
}
class CMessageTarget: public CSaveableObject {
DECLARE_MESSAGE_MAP
public:

View File

@ -27,8 +27,7 @@
namespace Titanic {
BEGIN_MESSAGE_MAP(CNamedItem, CTreeItem)
END_MESSAGE_MAP()
EMPTY_MESSAGE_MAP(CNamedItem, CTreeItem)
CString CNamedItem::dumpItem(int indent) const {
CString result = CTreeItem::dumpItem(indent);

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CNodeItem, CNamedItem)
CNodeItem::CNodeItem() : CNamedItem(), _nodeNumber(0) {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CNodeItem : public CNamedItem {
DECLARE_MESSAGE_MAP
public:
int _nodeNumber;
Point _nodePos;

View File

@ -41,6 +41,8 @@ namespace Titanic {
static const char *const SAVEGAME_STR = "TNIC";
#define SAVEGAME_STR_SIZE 4
EMPTY_MESSAGE_MAP(CProjectItem, CFileItem)
void CFileListItem::save(SimpleFile *file, int indent) const {
file->writeNumberLine(0, indent);
file->writeQuotedLine(_name, indent);

View File

@ -73,11 +73,10 @@ public:
* Filename list
*/
class CFileList: public List<CFileListItem> {
public:
};
class CProjectItem : public CFileItem {
DECLARE_MESSAGE_MAP
private:
CString _filename;
CFileList _files;

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CRoomItem, CNamedItem)
CRoomItem::CRoomItem() : CNamedItem(), _roomNumber(0),
_roomDimensionX(0.0), _roomDimensionY(0.0) {
}

View File

@ -32,6 +32,7 @@
namespace Titanic {
class CRoomItem : public CNamedItem {
DECLARE_MESSAGE_MAP
private:
/**
* Handles post-load processing

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CStaticImage, CGameObject)
void CStaticImage::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CGameObject::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CStaticImage : public CGameObject {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -38,8 +38,7 @@
namespace Titanic {
BEGIN_MESSAGE_MAP(CTreeItem, CMessageTarget)
END_MESSAGE_MAP()
EMPTY_MESSAGE_MAP(CTreeItem, CMessageTarget)
CTreeItem::CTreeItem() : _parent(nullptr), _firstChild(nullptr),
_nextSibling(nullptr), _priorSibling(nullptr), _field14(0) {

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CArbBackground, CBackground)
CArbBackground::CArbBackground() : CBackground(),
_fieldE0(0), _fieldE4(61), _fieldE8(62), _fieldEC(118) {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CArbBackground : public CBackground {
DECLARE_MESSAGE_MAP
public:
int _fieldE0;
int _fieldE4;

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CBrokenPellBase, CBackground)
int CBrokenPellBase::_v1;
int CBrokenPellBase::_v2;

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CBrokenPellBase : public CBackground {
DECLARE_MESSAGE_MAP
private:
static int _v1;
static int _v2;

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CLeaveSecClassState, CGameObject)
void CLeaveSecClassState::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CGameObject::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CLeaveSecClassState : public CGameObject {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CMusicRoomPhonograph, CRestaurantPhonograph)
void CMusicRoomPhonograph::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
file->writeNumberLine(_field118, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CMusicRoomPhonograph : public CRestaurantPhonograph {
DECLARE_MESSAGE_MAP
private:
int _field118;
public:

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CMusicalInstrument, CBackground)
void CMusicalInstrument::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CBackground::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CMusicalInstrument : public CBackground {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CNavigationComputer, CGameObject)
void CNavigationComputer::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CGameObject::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CNavigationComputer : public CGameObject {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CNullPortHole, CClickResponder)
CNullPortHole::CNullPortHole() : CClickResponder() {
_string1 = "For a better view, why not visit the Promenade Deck?";
_string2 = "b#48.wav";

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CNullPortHole : public CClickResponder {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CNullPortHole();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CParrotLobbyObject, CGameObject)
int CParrotLobbyObject::_v1;
int CParrotLobbyObject::_v2;
int CParrotLobbyObject::_v3;

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CParrotLobbyObject : public CGameObject {
DECLARE_MESSAGE_MAP
public:
static int _v1;
static int _v2;

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CPETClass1, CGameObject)
void CPETClass1::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CGameObject::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CPETClass1 : public CGameObject {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CPETClass2, CGameObject)
void CPETClass2::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CGameObject::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CPETClass2 : public CGameObject {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CPETClass3, CGameObject)
void CPETClass3::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CGameObject::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CPETClass3 : public CGameObject {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CSplashAnimation, CGameObject)
void CSplashAnimation::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CGameObject::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CSplashAnimation : public CGameObject {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CTransport, CMobile)
CTransport::CTransport() : CMobile(), _string1("*.*.*") {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CTransport : public CMobile {
DECLARE_MESSAGE_MAP
public:
CString _string1;
CString _string2;

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CChevLeftOff, CToggleSwitch)
CChevLeftOff::CChevLeftOff() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CChevLeftOff : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CChevLeftOff();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CChevLeftOn, CToggleSwitch)
CChevLeftOn::CChevLeftOn() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CChevLeftOn : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CChevLeftOn();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CChevRightOff, CToggleSwitch)
CChevRightOff::CChevRightOff() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CChevRightOff : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CChevRightOff();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CChevRightOn, CToggleSwitch)
CChevRightOn::CChevRightOn() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CChevRightOn : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CChevRightOn();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CChevSendRecSwitch, CToggleSwitch)
CChevSendRecSwitch::CChevSendRecSwitch() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CChevSendRecSwitch : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CChevSendRecSwitch();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CElevatorButton, CSTButton)
CElevatorButton::CElevatorButton() : CSTButton() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CElevatorButton : public CSTButton {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CElevatorButton();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CGetFromSucc, CToggleSwitch)
CGetFromSucc::CGetFromSucc() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CGetFromSucc : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CGetFromSucc();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CHelmetOnOff, CToggleSwitch)
CHelmetOnOff::CHelmetOnOff() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CHelmetOnOff : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CHelmetOnOff();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CHomePhoto, CToggleSwitch)
CHomePhoto::CHomePhoto() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CHomePhoto : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CHomePhoto();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavAction, CToggleSwitch)
CIconNavAction::CIconNavAction() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavAction : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CIconNavAction();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavButt, CPetGraphic)
void CIconNavButt::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CPetGraphic::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavButt : public CPetGraphic {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavDown, CToggleSwitch)
CIconNavDown::CIconNavDown() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavDown : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CIconNavDown();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavImage, CPetGraphic)
void CIconNavImage::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CPetGraphic::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavImage : public CPetGraphic {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavLeft, CToggleSwitch)
CIconNavLeft::CIconNavLeft() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavLeft : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CIconNavLeft();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavReceive, CPetGraphic)
void CIconNavReceive::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CPetGraphic::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavReceive : public CPetGraphic {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavRight, CToggleSwitch)
CIconNavRight::CIconNavRight() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavRight : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CIconNavRight();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavSend, CPetGraphic)
void CIconNavSend::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CPetGraphic::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavSend : public CPetGraphic {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CIconNavUp, CToggleSwitch)
CIconNavUp::CIconNavUp() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CIconNavUp : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CIconNavUp();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CKeybrdButt, CToggleSwitch)
CKeybrdButt::CKeybrdButt() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CKeybrdButt : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CKeybrdButt();

View File

@ -0,0 +1,39 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "titanic/gfx/music_slider.h"
namespace Titanic {
EMPTY_MESSAGE_MAP(CMusicSlider, CMusicControl)
void CMusicSlider::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CMusicControl::save(file, indent);
}
void CMusicSlider::load(SimpleFile *file) {
file->readNumber();
CMusicControl::load(file);
}
} // End of namespace Titanic

View File

@ -28,24 +28,19 @@
namespace Titanic {
class CMusicSlider : public CMusicControl {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
/**
* Save the data for the class to file
*/
virtual void save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CMusicControl::save(file, indent);
}
virtual void save(SimpleFile *file, int indent) const;
/**
* Load the data for the class from file
*/
virtual void load(SimpleFile *file) {
file->readNumber();
CMusicControl::load(file);
}
virtual void load(SimpleFile *file);
};
} // End of namespace Titanic

View File

@ -0,0 +1,39 @@
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "titanic/gfx/music_switch.h"
namespace Titanic {
EMPTY_MESSAGE_MAP(CMusicSwitch, CMusicControl)
void CMusicSwitch::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CMusicControl::save(file, indent);
}
void CMusicSwitch::load(SimpleFile *file) {
file->readNumber();
CMusicControl::load(file);
}
} // End of namespace Titanic

View File

@ -28,24 +28,19 @@
namespace Titanic {
class CMusicSwitch : public CMusicControl {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
/**
* Save the data for the class to file
*/
virtual void save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CMusicControl::save(file, indent);
}
virtual void save(SimpleFile *file, int indent) const;
/**
* Load the data for the class from file
*/
virtual void load(SimpleFile *file) {
file->readNumber();
CMusicControl::load(file);
}
virtual void load(SimpleFile *file);
};
} // End of namespace Titanic

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CSendToSucc, CToggleSwitch)
CSendToSucc::CSendToSucc() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CSendToSucc : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CSendToSucc();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CSGTSelector, CPetGraphic)
void CSGTSelector::save(SimpleFile *file, int indent) const {
file->writeNumberLine(1, indent);
CPetGraphic::save(file, indent);

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CSGTSelector : public CPetGraphic {
DECLARE_MESSAGE_MAP
public:
CLASSDEF

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CSmallChevLeftOff, CToggleSwitch)
CSmallChevLeftOff::CSmallChevLeftOff() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CSmallChevLeftOff : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CSmallChevLeftOff();

View File

@ -24,6 +24,8 @@
namespace Titanic {
EMPTY_MESSAGE_MAP(CSmallChevLeftOn, CToggleSwitch)
CSmallChevLeftOn::CSmallChevLeftOn() : CToggleSwitch() {
}

View File

@ -28,6 +28,7 @@
namespace Titanic {
class CSmallChevLeftOn : public CToggleSwitch {
DECLARE_MESSAGE_MAP
public:
CLASSDEF
CSmallChevLeftOn();

Some files were not shown because too many files have changed in this diff Show More