diff options
author | Paul Gilbert | 2016-03-17 22:51:29 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-17 22:51:29 -0400 |
commit | 04b8c75a9371d0ad353cbf4cc86da6087e94c7df (patch) | |
tree | d22840a0c5f7aca3b21791444a1937243abb7025 /engines/titanic/game/volume_control.cpp | |
parent | 39a4db06fa00c994ac225b68a9e236ca6cf39a35 (diff) | |
download | scummvm-rg350-04b8c75a9371d0ad353cbf4cc86da6087e94c7df.tar.gz scummvm-rg350-04b8c75a9371d0ad353cbf4cc86da6087e94c7df.tar.bz2 scummvm-rg350-04b8c75a9371d0ad353cbf4cc86da6087e94c7df.zip |
TITANIC: Add stubs for CEnterNodeMsg message handlers
Diffstat (limited to 'engines/titanic/game/volume_control.cpp')
-rw-r--r-- | engines/titanic/game/volume_control.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/engines/titanic/game/volume_control.cpp b/engines/titanic/game/volume_control.cpp new file mode 100644 index 0000000000..26f89a7b55 --- /dev/null +++ b/engines/titanic/game/volume_control.cpp @@ -0,0 +1,53 @@ +/* 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/game/volume_control.h" + +namespace Titanic { + +CVolumeControl::CVolumeControl() : CGameObject() { +} + +void CVolumeControl::save(SimpleFile *file, int indent) const { + file->writeNumberLine(1, indent); + file->writeNumberLine(_fieldBC, indent); + file->writeQuotedLine(_string1, indent); + file->writeNumberLine(_fieldCC, indent); + + CGameObject::save(file, indent); +} + +void CVolumeControl::load(SimpleFile *file) { + file->readNumber(); + _fieldBC = file->readNumber(); + _string1 = file->readString(); + _fieldCC = file->readNumber(); + + CGameObject::load(file); +} + +bool CVolumeControl::handleEvent(const CEnterNodeMsg &msg) { + warning("CVolumeControl::handleEvent"); + return true; +} + +} // End of namespace Titanic |