diff options
author | Paul Gilbert | 2016-05-12 23:27:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:39:28 -0400 |
commit | d649157c5b1afae1ff6a9a565575c1eddcc880fa (patch) | |
tree | 6dffb3c84bc42909dd788a883d11671d3e2c6989 /engines/titanic/true_talk/tt_picture.cpp | |
parent | e8971dd106fa28fe1d4ef8e00ee34ec623a746c9 (diff) | |
download | scummvm-rg350-d649157c5b1afae1ff6a9a565575c1eddcc880fa.tar.gz scummvm-rg350-d649157c5b1afae1ff6a9a565575c1eddcc880fa.tar.bz2 scummvm-rg350-d649157c5b1afae1ff6a9a565575c1eddcc880fa.zip |
TITANIC: Figured out original class names for TTword descendents
Diffstat (limited to 'engines/titanic/true_talk/tt_picture.cpp')
-rw-r--r-- | engines/titanic/true_talk/tt_picture.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/engines/titanic/true_talk/tt_picture.cpp b/engines/titanic/true_talk/tt_picture.cpp new file mode 100644 index 0000000000..21574df195 --- /dev/null +++ b/engines/titanic/true_talk/tt_picture.cpp @@ -0,0 +1,46 @@ +/* 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/true_talk/tt_picture.h" + +namespace Titanic { + +TTpicture::TTpicture(TTString &str, int val1, int val2, int val3, int val4, int val5, int val6) : + TTmajorWord(str, val1, val2, val4), _field34(val3), _field30(val5), _field3C(val6), + _field38(0) { +} + +int TTpicture::load(SimpleFile *file) { + CString str; + int val1, val2; + + if (!TTword::load(file, 2) && file->scanf("%s %d %d", &str, &val1, &val2)) { + _field34 = readNumber(str.c_str()); + _field30 = val1; + _field3C = val2; + return 0; + } else { + return 3; + } +} + +} // End of namespace Titanic |