aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-28 21:42:13 -0500
committerPaul Gilbert2016-02-28 21:42:13 -0500
commit6eb777fe362d77189425c2ae137bedab0af5ee5f (patch)
tree2df00b84121ccb83115cacd8a62ef686e125dbfc /engines/titanic/core
parent0471a25575d7cabff26f8abbace55c1dadaf6320 (diff)
downloadscummvm-rg350-6eb777fe362d77189425c2ae137bedab0af5ee5f.tar.gz
scummvm-rg350-6eb777fe362d77189425c2ae137bedab0af5ee5f.tar.bz2
scummvm-rg350-6eb777fe362d77189425c2ae137bedab0af5ee5f.zip
TITANIC: Added a lot of class definitions
Let's be honest here, it's a s**t-load of class definitions
Diffstat (limited to 'engines/titanic/core')
-rw-r--r--engines/titanic/core/saveable_object.cpp54
-rw-r--r--engines/titanic/core/static_image.cpp37
-rw-r--r--engines/titanic/core/static_image.h50
3 files changed, 135 insertions, 6 deletions
diff --git a/engines/titanic/core/saveable_object.cpp b/engines/titanic/core/saveable_object.cpp
index 12efdc17d2..f76340c83b 100644
--- a/engines/titanic/core/saveable_object.cpp
+++ b/engines/titanic/core/saveable_object.cpp
@@ -69,6 +69,7 @@
#include "titanic/core/view_item.h"
#include "titanic/game/announce.h"
+#include "titanic/game/belbot_get_light.h"
#include "titanic/game/bowl_unlocker.h"
#include "titanic/game/cdrom.h"
#include "titanic/game/cdrom_computer.h"
@@ -90,12 +91,9 @@
#include "titanic/game/no_nut_bowl.h"
#include "titanic/game/null_port_hole.h"
#include "titanic/game/nut_replacer.h"
-#include "titanic/game/pet_position.h"
#include "titanic/game/port_hole.h"
#include "titanic/game/room_item.h"
#include "titanic/game/service_elevator_door.h"
-#include "titanic/game/sgt_state_room.h"
-#include "titanic/game/sgt_upper_doors_sound.h"
#include "titanic/game/start_action.h"
#include "titanic/game/sub_glass.h"
#include "titanic/game/sweet_bowl.h"
@@ -110,6 +108,21 @@
#include "titanic/game/parrot/parrot_perch_holder.h"
#include "titanic/game/parrot/parrot_succubus.h"
#include "titanic/game/parrot/parrot_trigger.h"
+#include "titanic/game/pet/pet.h"
+#include "titanic/game/pet/pet_class1.h"
+#include "titanic/game/pet/pet_class2.h"
+#include "titanic/game/pet/pet_class3.h"
+#include "titanic/game/pet/pet_monitor.h"
+#include "titanic/game/pet/pet_position.h"
+#include "titanic/game/pet/pet_sentinal.h"
+#include "titanic/game/pet/pet_sounds.h"
+#include "titanic/game/pet/pet_transition.h"
+#include "titanic/game/pet/pet_transport.h"
+#include "titanic/game/sgt/sgt_doors.h"
+#include "titanic/game/sgt/sgt_navigation.h"
+#include "titanic/game/sgt/sgt_restaurant_doors.h"
+#include "titanic/game/sgt/sgt_state_room.h"
+#include "titanic/game/sgt/sgt_upper_doors_sound.h"
#include "titanic/gfx/act_button.h"
#include "titanic/gfx/changes_season_button.h"
@@ -230,6 +243,7 @@ DEFFN(CTreeItem);
DEFFN(CViewItem);
DEFFN(CAnnounce);
+DEFFN(CBelbotGetLight);
DEFFN(CBowlUnlocker);
DEFFN(CCDROM);
DEFFN(CCDROMComputer);
@@ -250,12 +264,9 @@ DEFFN(CLittleLiftButton);
DEFFN(CNoNutBowl);
DEFFN(CNullPortHole);
DEFFN(CNutReplacer);
-DEFFN(CPETPosition);
DEFFN(CPortHole);
DEFFN(CRoomItem);
DEFFN(CServiceElevatorDoor);
-DEFFN(CSGTStateRoom);
-DEFFN(CSGTUpperDoorsSound);
DEFFN(CStartAction);
DEFFN(CSUBGlass);
DEFFN(CSweetBowl);
@@ -270,6 +281,21 @@ DEFFN(CParrotNutEater);
DEFFN(CParrotPerchHolder);
DEFFN(CParrotSuccUBus);
DEFFN(CParrotTrigger);
+DEFFN(CPET);
+DEFFN(CPETClass1);
+DEFFN(CPETClass2);
+DEFFN(CPETClass3);
+DEFFN(CPETMonitor);
+DEFFN(CPETPosition);
+DEFFN(CPETSentinal);
+DEFFN(CPETSounds);
+DEFFN(CPETTransition);
+DEFFN(CPETTransport);
+DEFFN(CSGTDoors);
+DEFFN(CSGTNavigation);
+DEFFN(CSGTRestaurantDoors);
+DEFFN(CSGTStateRoom);
+DEFFN(CSGTUpperDoorsSound);
DEFFN(CActButton);
DEFFN(CChangesSeasonButton);
@@ -554,6 +580,7 @@ void CSaveableObject::initClassList() {
ADDFN(CViewItem);
ADDFN(CAnnounce);
+ ADDFN(CBelbotGetLight);
ADDFN(CBowlUnlocker);
ADDFN(CCDROM);
ADDFN(CCDROMComputer);
@@ -595,6 +622,21 @@ void CSaveableObject::initClassList() {
ADDFN(CParrotPerchHolder);
ADDFN(CParrotSuccUBus);
ADDFN(CParrotTrigger);
+ ADDFN(CPET);
+ ADDFN(CPETClass1);
+ ADDFN(CPETClass2);
+ ADDFN(CPETClass3);
+ ADDFN(CPETMonitor);
+ ADDFN(CPETPosition);
+ ADDFN(CPETSentinal);
+ ADDFN(CPETSounds);
+ ADDFN(CPETTransition);
+ ADDFN(CPETTransport);
+ ADDFN(CSGTDoors);
+ ADDFN(CSGTNavigation);
+ ADDFN(CSGTRestaurantDoors);
+ ADDFN(CSGTStateRoom);
+ ADDFN(CSGTUpperDoorsSound);
ADDFN(CActButton);
ADDFN(CChangesSeasonButton);
diff --git a/engines/titanic/core/static_image.cpp b/engines/titanic/core/static_image.cpp
new file mode 100644
index 0000000000..54a041fff5
--- /dev/null
+++ b/engines/titanic/core/static_image.cpp
@@ -0,0 +1,37 @@
+/* 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/core/static_image.h"
+
+namespace Titanic {
+
+void CStaticImage::save(SimpleFile *file, int indent) const {
+ file->writeNumberLine(1, indent);
+ CGameObject::save(file, indent);
+}
+
+void CStaticImage::load(SimpleFile *file) {
+ file->readNumber();
+ CGameObject::load(file);
+}
+
+} // End of namespace Titanic
diff --git a/engines/titanic/core/static_image.h b/engines/titanic/core/static_image.h
new file mode 100644
index 0000000000..ac556f243e
--- /dev/null
+++ b/engines/titanic/core/static_image.h
@@ -0,0 +1,50 @@
+/* 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.
+ *
+ */
+
+#ifndef TITANIC_STATIC_IMAGE_H
+#define TITANIC_STATIC_IMAGE_H
+
+#include "titanic/core/game_object.h"
+
+namespace Titanic {
+
+class CStaticImage : public CGameObject {
+public:
+ /**
+ * Return the class name
+ */
+ virtual const char *getClassName() const { return "CStaticImage"; }
+
+ /**
+ * Save the data for the class to file
+ */
+ virtual void save(SimpleFile *file, int indent) const;
+
+ /**
+ * Load the data for the class from file
+ */
+ virtual void load(SimpleFile *file);
+};
+
+} // End of namespace Titanic
+
+#endif /* TITANIC_STATIC_IMAGE_H */