mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 17:46:22 +00:00
TITANIC: Set up empty message targets for classes without messages
This commit is contained in:
parent
0715be7926
commit
5c2a39e74a
@ -123,7 +123,7 @@ bool CBrain::PassOnDragStartMsg(CPassOnDragStartMsg *msg) {
|
|||||||
bool CBrain::PETGainedObjectMsg(CPETGainedObjectMsg *msg) {
|
bool CBrain::PETGainedObjectMsg(CPETGainedObjectMsg *msg) {
|
||||||
if (!_field138) {
|
if (!_field138) {
|
||||||
if (getName() == "Perch") {
|
if (getName() == "Perch") {
|
||||||
incState38();
|
stateInc38();
|
||||||
_field138 = 1;
|
_field138 = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,7 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
BEGIN_MESSAGE_MAP(CFeathers, CCarry)
|
EMPTY_MESSAGE_MAP(CFeathers, CCarry)
|
||||||
END_MESSAGE_MAP()
|
|
||||||
|
|
||||||
CFeathers::CFeathers() : CCarry() {
|
CFeathers::CFeathers() : CCarry() {
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CHoseEnd, CHose)
|
||||||
|
|
||||||
CHoseEnd::CHoseEnd() : CHose() {
|
CHoseEnd::CHoseEnd() : CHose() {
|
||||||
_string6 = "Connection refused by remote hose.";
|
_string6 = "Connection refused by remote hose.";
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CHoseEnd : public CHose {
|
class CHoseEnd : public CHose {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CHoseEnd();
|
CHoseEnd();
|
||||||
|
@ -24,8 +24,7 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
BEGIN_MESSAGE_MAP(CParcel, CCarry)
|
EMPTY_MESSAGE_MAP(CParcel, CCarry)
|
||||||
END_MESSAGE_MAP()
|
|
||||||
|
|
||||||
CParcel::CParcel() : CCarry() {
|
CParcel::CParcel() : CCarry() {
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CDontSaveFileItem, CFileItem)
|
||||||
|
|
||||||
void CDontSaveFileItem::save(SimpleFile *file, int indent) const {
|
void CDontSaveFileItem::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(0, indent);
|
file->writeNumberLine(0, indent);
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CDontSaveFileItem : public CFileItem {
|
class CDontSaveFileItem : public CFileItem {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CFileItem, CTreeItem)
|
||||||
|
|
||||||
void CFileItem::save(SimpleFile *file, int indent) const {
|
void CFileItem::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(0, indent);
|
file->writeNumberLine(0, indent);
|
||||||
CTreeItem::save(file, indent);
|
CTreeItem::save(file, indent);
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CFileItem: public CTreeItem {
|
class CFileItem: public CTreeItem {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
private:
|
private:
|
||||||
CString _filename;
|
CString _filename;
|
||||||
public:
|
public:
|
||||||
|
@ -35,8 +35,7 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
BEGIN_MESSAGE_MAP(CGameObject, CNamedItem)
|
EMPTY_MESSAGE_MAP(CGameObject, CNamedItem)
|
||||||
END_MESSAGE_MAP()
|
|
||||||
|
|
||||||
CCreditText *CGameObject::_credits;
|
CCreditText *CGameObject::_credits;
|
||||||
|
|
||||||
@ -424,6 +423,10 @@ void CGameObject::soundFn5(int v1, int v2, int v3) {
|
|||||||
warning("CGameObject::soundFn5");
|
warning("CGameObject::soundFn5");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGameObject::sound8(bool flag) const {
|
||||||
|
getGameManager()->_sound.managerProc8(flag ? 3 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
void CGameObject::setVisible(bool val) {
|
void CGameObject::setVisible(bool val) {
|
||||||
if (val != _visible) {
|
if (val != _visible) {
|
||||||
_visible = val;
|
_visible = val;
|
||||||
@ -582,10 +585,6 @@ int CGameObject::getSurface45() const {
|
|||||||
return _surface ? _surface->proc45() : 0;
|
return _surface ? _surface->proc45() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameObject::sound8(bool flag) const {
|
|
||||||
getGameManager()->_sound.managerProc8(flag ? 3 : 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CGameObject::loadSound(const CString &name) {
|
void CGameObject::loadSound(const CString &name) {
|
||||||
CGameManager *gameManager = getGameManager();
|
CGameManager *gameManager = getGameManager();
|
||||||
if (gameManager) {
|
if (gameManager) {
|
||||||
@ -855,15 +854,11 @@ void CGameObject::moveToView(const CString &name) {
|
|||||||
view->addUnder(this);
|
view->addUnder(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameObject::incState38() {
|
|
||||||
getGameManager()->_gameState.inc38();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CGameObject::stateInc14() {
|
void CGameObject::stateInc14() {
|
||||||
getGameManager()->_gameState.inc14();
|
getGameManager()->_gameState.inc14();
|
||||||
}
|
}
|
||||||
|
|
||||||
int CGameObject::stateGet14() {
|
int CGameObject::stateGet14() const {
|
||||||
return getGameManager()->_gameState._field14;
|
return getGameManager()->_gameState._field14;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -871,10 +866,22 @@ void CGameObject::stateSet24() {
|
|||||||
getGameManager()->_gameState.set24(1);
|
getGameManager()->_gameState.set24(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CGameObject::stateGet24() {
|
int CGameObject::stateGet24() const {
|
||||||
return getGameManager()->_gameState.get24();
|
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() {
|
void CGameObject::inc54() {
|
||||||
getGameManager()->inc54();
|
getGameManager()->inc54();
|
||||||
}
|
}
|
||||||
|
@ -201,6 +201,8 @@ protected:
|
|||||||
|
|
||||||
void soundFn5(int v1, int v2, int v3);
|
void soundFn5(int v1, int v2, int v3);
|
||||||
|
|
||||||
|
void sound8(bool flag) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a timer
|
* Adds a timer
|
||||||
*/
|
*/
|
||||||
@ -287,8 +289,6 @@ protected:
|
|||||||
*/
|
*/
|
||||||
Point getControid() const;
|
Point getControid() const;
|
||||||
|
|
||||||
void sound8(bool flag) const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plays a movie
|
* Plays a movie
|
||||||
*/
|
*/
|
||||||
@ -440,11 +440,17 @@ protected:
|
|||||||
void petUnlockInput();
|
void petUnlockInput();
|
||||||
|
|
||||||
void setState1C(bool flag);
|
void setState1C(bool flag);
|
||||||
void incState38();
|
|
||||||
void stateInc14();
|
void stateInc14();
|
||||||
int stateGet14();
|
int stateGet14() const;
|
||||||
void stateSet24();
|
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);
|
void surface39(int v1, int v2);
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CLinkItem, CNamedItem)
|
||||||
|
|
||||||
CLinkItem::CLinkItem() : CNamedItem() {
|
CLinkItem::CLinkItem() : CNamedItem() {
|
||||||
_roomNumber = -1;
|
_roomNumber = -1;
|
||||||
_nodeNumber = -1;
|
_nodeNumber = -1;
|
||||||
|
@ -34,6 +34,7 @@ class CNodeItem;
|
|||||||
class CRoomItem;
|
class CRoomItem;
|
||||||
|
|
||||||
class CLinkItem : public CNamedItem {
|
class CLinkItem : public CNamedItem {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* Returns a new name for the link item, based on the
|
* Returns a new name for the link item, based on the
|
||||||
|
@ -68,6 +68,21 @@ protected: \
|
|||||||
return &messageMap; \
|
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 {
|
class CMessageTarget: public CSaveableObject {
|
||||||
DECLARE_MESSAGE_MAP
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
|
@ -27,8 +27,7 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
BEGIN_MESSAGE_MAP(CNamedItem, CTreeItem)
|
EMPTY_MESSAGE_MAP(CNamedItem, CTreeItem)
|
||||||
END_MESSAGE_MAP()
|
|
||||||
|
|
||||||
CString CNamedItem::dumpItem(int indent) const {
|
CString CNamedItem::dumpItem(int indent) const {
|
||||||
CString result = CTreeItem::dumpItem(indent);
|
CString result = CTreeItem::dumpItem(indent);
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CNodeItem, CNamedItem)
|
||||||
|
|
||||||
CNodeItem::CNodeItem() : CNamedItem(), _nodeNumber(0) {
|
CNodeItem::CNodeItem() : CNamedItem(), _nodeNumber(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CNodeItem : public CNamedItem {
|
class CNodeItem : public CNamedItem {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
int _nodeNumber;
|
int _nodeNumber;
|
||||||
Point _nodePos;
|
Point _nodePos;
|
||||||
|
@ -41,6 +41,8 @@ namespace Titanic {
|
|||||||
static const char *const SAVEGAME_STR = "TNIC";
|
static const char *const SAVEGAME_STR = "TNIC";
|
||||||
#define SAVEGAME_STR_SIZE 4
|
#define SAVEGAME_STR_SIZE 4
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CProjectItem, CFileItem)
|
||||||
|
|
||||||
void CFileListItem::save(SimpleFile *file, int indent) const {
|
void CFileListItem::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(0, indent);
|
file->writeNumberLine(0, indent);
|
||||||
file->writeQuotedLine(_name, indent);
|
file->writeQuotedLine(_name, indent);
|
||||||
|
@ -73,11 +73,10 @@ public:
|
|||||||
* Filename list
|
* Filename list
|
||||||
*/
|
*/
|
||||||
class CFileList: public List<CFileListItem> {
|
class CFileList: public List<CFileListItem> {
|
||||||
public:
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class CProjectItem : public CFileItem {
|
class CProjectItem : public CFileItem {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
private:
|
private:
|
||||||
CString _filename;
|
CString _filename;
|
||||||
CFileList _files;
|
CFileList _files;
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CRoomItem, CNamedItem)
|
||||||
|
|
||||||
CRoomItem::CRoomItem() : CNamedItem(), _roomNumber(0),
|
CRoomItem::CRoomItem() : CNamedItem(), _roomNumber(0),
|
||||||
_roomDimensionX(0.0), _roomDimensionY(0.0) {
|
_roomDimensionX(0.0), _roomDimensionY(0.0) {
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CRoomItem : public CNamedItem {
|
class CRoomItem : public CNamedItem {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* Handles post-load processing
|
* Handles post-load processing
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CStaticImage, CGameObject)
|
||||||
|
|
||||||
void CStaticImage::save(SimpleFile *file, int indent) const {
|
void CStaticImage::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CGameObject::save(file, indent);
|
CGameObject::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CStaticImage : public CGameObject {
|
class CStaticImage : public CGameObject {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -38,8 +38,7 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
BEGIN_MESSAGE_MAP(CTreeItem, CMessageTarget)
|
EMPTY_MESSAGE_MAP(CTreeItem, CMessageTarget)
|
||||||
END_MESSAGE_MAP()
|
|
||||||
|
|
||||||
CTreeItem::CTreeItem() : _parent(nullptr), _firstChild(nullptr),
|
CTreeItem::CTreeItem() : _parent(nullptr), _firstChild(nullptr),
|
||||||
_nextSibling(nullptr), _priorSibling(nullptr), _field14(0) {
|
_nextSibling(nullptr), _priorSibling(nullptr), _field14(0) {
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CArbBackground, CBackground)
|
||||||
|
|
||||||
CArbBackground::CArbBackground() : CBackground(),
|
CArbBackground::CArbBackground() : CBackground(),
|
||||||
_fieldE0(0), _fieldE4(61), _fieldE8(62), _fieldEC(118) {
|
_fieldE0(0), _fieldE4(61), _fieldE8(62), _fieldEC(118) {
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CArbBackground : public CBackground {
|
class CArbBackground : public CBackground {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
int _fieldE0;
|
int _fieldE0;
|
||||||
int _fieldE4;
|
int _fieldE4;
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CBrokenPellBase, CBackground)
|
||||||
|
|
||||||
int CBrokenPellBase::_v1;
|
int CBrokenPellBase::_v1;
|
||||||
int CBrokenPellBase::_v2;
|
int CBrokenPellBase::_v2;
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CBrokenPellBase : public CBackground {
|
class CBrokenPellBase : public CBackground {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
private:
|
private:
|
||||||
static int _v1;
|
static int _v1;
|
||||||
static int _v2;
|
static int _v2;
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CLeaveSecClassState, CGameObject)
|
||||||
|
|
||||||
void CLeaveSecClassState::save(SimpleFile *file, int indent) const {
|
void CLeaveSecClassState::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CGameObject::save(file, indent);
|
CGameObject::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CLeaveSecClassState : public CGameObject {
|
class CLeaveSecClassState : public CGameObject {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CMusicRoomPhonograph, CRestaurantPhonograph)
|
||||||
|
|
||||||
void CMusicRoomPhonograph::save(SimpleFile *file, int indent) const {
|
void CMusicRoomPhonograph::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
file->writeNumberLine(_field118, indent);
|
file->writeNumberLine(_field118, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CMusicRoomPhonograph : public CRestaurantPhonograph {
|
class CMusicRoomPhonograph : public CRestaurantPhonograph {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
private:
|
private:
|
||||||
int _field118;
|
int _field118;
|
||||||
public:
|
public:
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CMusicalInstrument, CBackground)
|
||||||
|
|
||||||
void CMusicalInstrument::save(SimpleFile *file, int indent) const {
|
void CMusicalInstrument::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CBackground::save(file, indent);
|
CBackground::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CMusicalInstrument : public CBackground {
|
class CMusicalInstrument : public CBackground {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CNavigationComputer, CGameObject)
|
||||||
|
|
||||||
void CNavigationComputer::save(SimpleFile *file, int indent) const {
|
void CNavigationComputer::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CGameObject::save(file, indent);
|
CGameObject::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CNavigationComputer : public CGameObject {
|
class CNavigationComputer : public CGameObject {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CNullPortHole, CClickResponder)
|
||||||
|
|
||||||
CNullPortHole::CNullPortHole() : CClickResponder() {
|
CNullPortHole::CNullPortHole() : CClickResponder() {
|
||||||
_string1 = "For a better view, why not visit the Promenade Deck?";
|
_string1 = "For a better view, why not visit the Promenade Deck?";
|
||||||
_string2 = "b#48.wav";
|
_string2 = "b#48.wav";
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CNullPortHole : public CClickResponder {
|
class CNullPortHole : public CClickResponder {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CNullPortHole();
|
CNullPortHole();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CParrotLobbyObject, CGameObject)
|
||||||
|
|
||||||
int CParrotLobbyObject::_v1;
|
int CParrotLobbyObject::_v1;
|
||||||
int CParrotLobbyObject::_v2;
|
int CParrotLobbyObject::_v2;
|
||||||
int CParrotLobbyObject::_v3;
|
int CParrotLobbyObject::_v3;
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CParrotLobbyObject : public CGameObject {
|
class CParrotLobbyObject : public CGameObject {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
static int _v1;
|
static int _v1;
|
||||||
static int _v2;
|
static int _v2;
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CPETClass1, CGameObject)
|
||||||
|
|
||||||
void CPETClass1::save(SimpleFile *file, int indent) const {
|
void CPETClass1::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CGameObject::save(file, indent);
|
CGameObject::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CPETClass1 : public CGameObject {
|
class CPETClass1 : public CGameObject {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CPETClass2, CGameObject)
|
||||||
|
|
||||||
void CPETClass2::save(SimpleFile *file, int indent) const {
|
void CPETClass2::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CGameObject::save(file, indent);
|
CGameObject::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CPETClass2 : public CGameObject {
|
class CPETClass2 : public CGameObject {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CPETClass3, CGameObject)
|
||||||
|
|
||||||
void CPETClass3::save(SimpleFile *file, int indent) const {
|
void CPETClass3::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CGameObject::save(file, indent);
|
CGameObject::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CPETClass3 : public CGameObject {
|
class CPETClass3 : public CGameObject {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CSplashAnimation, CGameObject)
|
||||||
|
|
||||||
void CSplashAnimation::save(SimpleFile *file, int indent) const {
|
void CSplashAnimation::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CGameObject::save(file, indent);
|
CGameObject::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CSplashAnimation : public CGameObject {
|
class CSplashAnimation : public CGameObject {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CTransport, CMobile)
|
||||||
|
|
||||||
CTransport::CTransport() : CMobile(), _string1("*.*.*") {
|
CTransport::CTransport() : CMobile(), _string1("*.*.*") {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CTransport : public CMobile {
|
class CTransport : public CMobile {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CString _string1;
|
CString _string1;
|
||||||
CString _string2;
|
CString _string2;
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CChevLeftOff, CToggleSwitch)
|
||||||
|
|
||||||
CChevLeftOff::CChevLeftOff() : CToggleSwitch() {
|
CChevLeftOff::CChevLeftOff() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CChevLeftOff : public CToggleSwitch {
|
class CChevLeftOff : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CChevLeftOff();
|
CChevLeftOff();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CChevLeftOn, CToggleSwitch)
|
||||||
|
|
||||||
CChevLeftOn::CChevLeftOn() : CToggleSwitch() {
|
CChevLeftOn::CChevLeftOn() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CChevLeftOn : public CToggleSwitch {
|
class CChevLeftOn : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CChevLeftOn();
|
CChevLeftOn();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CChevRightOff, CToggleSwitch)
|
||||||
|
|
||||||
CChevRightOff::CChevRightOff() : CToggleSwitch() {
|
CChevRightOff::CChevRightOff() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CChevRightOff : public CToggleSwitch {
|
class CChevRightOff : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CChevRightOff();
|
CChevRightOff();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CChevRightOn, CToggleSwitch)
|
||||||
|
|
||||||
CChevRightOn::CChevRightOn() : CToggleSwitch() {
|
CChevRightOn::CChevRightOn() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CChevRightOn : public CToggleSwitch {
|
class CChevRightOn : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CChevRightOn();
|
CChevRightOn();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CChevSendRecSwitch, CToggleSwitch)
|
||||||
|
|
||||||
CChevSendRecSwitch::CChevSendRecSwitch() : CToggleSwitch() {
|
CChevSendRecSwitch::CChevSendRecSwitch() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CChevSendRecSwitch : public CToggleSwitch {
|
class CChevSendRecSwitch : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CChevSendRecSwitch();
|
CChevSendRecSwitch();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CElevatorButton, CSTButton)
|
||||||
|
|
||||||
CElevatorButton::CElevatorButton() : CSTButton() {
|
CElevatorButton::CElevatorButton() : CSTButton() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CElevatorButton : public CSTButton {
|
class CElevatorButton : public CSTButton {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CElevatorButton();
|
CElevatorButton();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CGetFromSucc, CToggleSwitch)
|
||||||
|
|
||||||
CGetFromSucc::CGetFromSucc() : CToggleSwitch() {
|
CGetFromSucc::CGetFromSucc() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CGetFromSucc : public CToggleSwitch {
|
class CGetFromSucc : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CGetFromSucc();
|
CGetFromSucc();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CHelmetOnOff, CToggleSwitch)
|
||||||
|
|
||||||
CHelmetOnOff::CHelmetOnOff() : CToggleSwitch() {
|
CHelmetOnOff::CHelmetOnOff() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CHelmetOnOff : public CToggleSwitch {
|
class CHelmetOnOff : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CHelmetOnOff();
|
CHelmetOnOff();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CHomePhoto, CToggleSwitch)
|
||||||
|
|
||||||
CHomePhoto::CHomePhoto() : CToggleSwitch() {
|
CHomePhoto::CHomePhoto() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CHomePhoto : public CToggleSwitch {
|
class CHomePhoto : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CHomePhoto();
|
CHomePhoto();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavAction, CToggleSwitch)
|
||||||
|
|
||||||
CIconNavAction::CIconNavAction() : CToggleSwitch() {
|
CIconNavAction::CIconNavAction() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavAction : public CToggleSwitch {
|
class CIconNavAction : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CIconNavAction();
|
CIconNavAction();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavButt, CPetGraphic)
|
||||||
|
|
||||||
void CIconNavButt::save(SimpleFile *file, int indent) const {
|
void CIconNavButt::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CPetGraphic::save(file, indent);
|
CPetGraphic::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavButt : public CPetGraphic {
|
class CIconNavButt : public CPetGraphic {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavDown, CToggleSwitch)
|
||||||
|
|
||||||
CIconNavDown::CIconNavDown() : CToggleSwitch() {
|
CIconNavDown::CIconNavDown() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavDown : public CToggleSwitch {
|
class CIconNavDown : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CIconNavDown();
|
CIconNavDown();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavImage, CPetGraphic)
|
||||||
|
|
||||||
void CIconNavImage::save(SimpleFile *file, int indent) const {
|
void CIconNavImage::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CPetGraphic::save(file, indent);
|
CPetGraphic::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavImage : public CPetGraphic {
|
class CIconNavImage : public CPetGraphic {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavLeft, CToggleSwitch)
|
||||||
|
|
||||||
CIconNavLeft::CIconNavLeft() : CToggleSwitch() {
|
CIconNavLeft::CIconNavLeft() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavLeft : public CToggleSwitch {
|
class CIconNavLeft : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CIconNavLeft();
|
CIconNavLeft();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavReceive, CPetGraphic)
|
||||||
|
|
||||||
void CIconNavReceive::save(SimpleFile *file, int indent) const {
|
void CIconNavReceive::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CPetGraphic::save(file, indent);
|
CPetGraphic::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavReceive : public CPetGraphic {
|
class CIconNavReceive : public CPetGraphic {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavRight, CToggleSwitch)
|
||||||
|
|
||||||
CIconNavRight::CIconNavRight() : CToggleSwitch() {
|
CIconNavRight::CIconNavRight() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavRight : public CToggleSwitch {
|
class CIconNavRight : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CIconNavRight();
|
CIconNavRight();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavSend, CPetGraphic)
|
||||||
|
|
||||||
void CIconNavSend::save(SimpleFile *file, int indent) const {
|
void CIconNavSend::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CPetGraphic::save(file, indent);
|
CPetGraphic::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavSend : public CPetGraphic {
|
class CIconNavSend : public CPetGraphic {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CIconNavUp, CToggleSwitch)
|
||||||
|
|
||||||
CIconNavUp::CIconNavUp() : CToggleSwitch() {
|
CIconNavUp::CIconNavUp() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CIconNavUp : public CToggleSwitch {
|
class CIconNavUp : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CIconNavUp();
|
CIconNavUp();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CKeybrdButt, CToggleSwitch)
|
||||||
|
|
||||||
CKeybrdButt::CKeybrdButt() : CToggleSwitch() {
|
CKeybrdButt::CKeybrdButt() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CKeybrdButt : public CToggleSwitch {
|
class CKeybrdButt : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CKeybrdButt();
|
CKeybrdButt();
|
||||||
|
39
engines/titanic/gfx/music_slider.cpp
Normal file
39
engines/titanic/gfx/music_slider.cpp
Normal 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
|
@ -28,24 +28,19 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CMusicSlider : public CMusicControl {
|
class CMusicSlider : public CMusicControl {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save the data for the class to file
|
* Save the data for the class to file
|
||||||
*/
|
*/
|
||||||
virtual void save(SimpleFile *file, int indent) const {
|
virtual void save(SimpleFile *file, int indent) const;
|
||||||
file->writeNumberLine(1, indent);
|
|
||||||
CMusicControl::save(file, indent);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the data for the class from file
|
* Load the data for the class from file
|
||||||
*/
|
*/
|
||||||
virtual void load(SimpleFile *file) {
|
virtual void load(SimpleFile *file);
|
||||||
file->readNumber();
|
|
||||||
CMusicControl::load(file);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace Titanic
|
} // End of namespace Titanic
|
||||||
|
39
engines/titanic/gfx/music_switch.cpp
Normal file
39
engines/titanic/gfx/music_switch.cpp
Normal 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
|
@ -28,24 +28,19 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CMusicSwitch : public CMusicControl {
|
class CMusicSwitch : public CMusicControl {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save the data for the class to file
|
* Save the data for the class to file
|
||||||
*/
|
*/
|
||||||
virtual void save(SimpleFile *file, int indent) const {
|
virtual void save(SimpleFile *file, int indent) const;
|
||||||
file->writeNumberLine(1, indent);
|
|
||||||
CMusicControl::save(file, indent);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the data for the class from file
|
* Load the data for the class from file
|
||||||
*/
|
*/
|
||||||
virtual void load(SimpleFile *file) {
|
virtual void load(SimpleFile *file);
|
||||||
file->readNumber();
|
|
||||||
CMusicControl::load(file);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace Titanic
|
} // End of namespace Titanic
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CSendToSucc, CToggleSwitch)
|
||||||
|
|
||||||
CSendToSucc::CSendToSucc() : CToggleSwitch() {
|
CSendToSucc::CSendToSucc() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CSendToSucc : public CToggleSwitch {
|
class CSendToSucc : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CSendToSucc();
|
CSendToSucc();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CSGTSelector, CPetGraphic)
|
||||||
|
|
||||||
void CSGTSelector::save(SimpleFile *file, int indent) const {
|
void CSGTSelector::save(SimpleFile *file, int indent) const {
|
||||||
file->writeNumberLine(1, indent);
|
file->writeNumberLine(1, indent);
|
||||||
CPetGraphic::save(file, indent);
|
CPetGraphic::save(file, indent);
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CSGTSelector : public CPetGraphic {
|
class CSGTSelector : public CPetGraphic {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CSmallChevLeftOff, CToggleSwitch)
|
||||||
|
|
||||||
CSmallChevLeftOff::CSmallChevLeftOff() : CToggleSwitch() {
|
CSmallChevLeftOff::CSmallChevLeftOff() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CSmallChevLeftOff : public CToggleSwitch {
|
class CSmallChevLeftOff : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CSmallChevLeftOff();
|
CSmallChevLeftOff();
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
|
EMPTY_MESSAGE_MAP(CSmallChevLeftOn, CToggleSwitch)
|
||||||
|
|
||||||
CSmallChevLeftOn::CSmallChevLeftOn() : CToggleSwitch() {
|
CSmallChevLeftOn::CSmallChevLeftOn() : CToggleSwitch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
namespace Titanic {
|
namespace Titanic {
|
||||||
|
|
||||||
class CSmallChevLeftOn : public CToggleSwitch {
|
class CSmallChevLeftOn : public CToggleSwitch {
|
||||||
|
DECLARE_MESSAGE_MAP
|
||||||
public:
|
public:
|
||||||
CLASSDEF
|
CLASSDEF
|
||||||
CSmallChevLeftOn();
|
CSmallChevLeftOn();
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user