diff options
author | Paul Gilbert | 2016-08-12 13:11:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-12 13:11:25 -0400 |
commit | 15c0f4b274146973f78c422e0237e904efc1f232 (patch) | |
tree | 4450e57722f434f32ef8b8f75cfd28c3357305db /engines/titanic/core | |
parent | a19d39c79b75f29daeacf9257e29a49d0d11bbc0 (diff) | |
download | scummvm-rg350-15c0f4b274146973f78c422e0237e904efc1f232.tar.gz scummvm-rg350-15c0f4b274146973f78c422e0237e904efc1f232.tar.bz2 scummvm-rg350-15c0f4b274146973f78c422e0237e904efc1f232.zip |
TITANIC: Implemented CArmchair class
Diffstat (limited to 'engines/titanic/core')
-rw-r--r-- | engines/titanic/core/background.cpp | 14 | ||||
-rw-r--r-- | engines/titanic/core/background.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/engines/titanic/core/background.cpp b/engines/titanic/core/background.cpp index f180df8867..733dfc1cf3 100644 --- a/engines/titanic/core/background.cpp +++ b/engines/titanic/core/background.cpp @@ -30,13 +30,13 @@ BEGIN_MESSAGE_MAP(CBackground, CGameObject) ON_MESSAGE(VisibleMsg) END_MESSAGE_MAP() -CBackground::CBackground() : CGameObject(), _fieldBC(0), _fieldC0(0), _fieldDC(0) { +CBackground::CBackground() : CGameObject(), _startFrame(0), _endFrame(0), _fieldDC(0) { } void CBackground::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); - file->writeNumberLine(_fieldBC, indent); - file->writeNumberLine(_fieldC0, indent); + file->writeNumberLine(_startFrame, indent); + file->writeNumberLine(_endFrame, indent); file->writeQuotedLine(_string1, indent); file->writeQuotedLine(_string2, indent); file->writeNumberLine(_fieldDC, indent); @@ -46,8 +46,8 @@ void CBackground::save(SimpleFile *file, int indent) { void CBackground::load(SimpleFile *file) { file->readNumber(); - _fieldBC = file->readNumber(); - _fieldC0 = file->readNumber(); + _startFrame = file->readNumber(); + _endFrame = file->readNumber(); _string1 = file->readString(); _string2 = file->readString(); _fieldDC = file->readNumber(); @@ -58,9 +58,9 @@ void CBackground::load(SimpleFile *file) { bool CBackground::StatusChangeMsg(CStatusChangeMsg *msg) { setVisible(true); if (_fieldDC) { - playMovie(_fieldBC, _fieldC0, 16); + playMovie(_startFrame, _endFrame, 16); } else { - playMovie(_fieldBC, _fieldC0, 0); + playMovie(_startFrame, _endFrame, 0); } return true; } diff --git a/engines/titanic/core/background.h b/engines/titanic/core/background.h index 6a2fd21454..b7f160db28 100644 --- a/engines/titanic/core/background.h +++ b/engines/titanic/core/background.h @@ -34,8 +34,8 @@ class CBackground : public CGameObject { bool SetFrameMsg(CSetFrameMsg *msg); bool VisibleMsg(CVisibleMsg *msg); protected: - int _fieldBC; - int _fieldC0; + int _startFrame; + int _endFrame; CString _string1; CString _string2; int _fieldDC; |