aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/sgt
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-29 22:56:16 -0500
committerPaul Gilbert2016-02-29 22:56:16 -0500
commit5dd3798ebf8177d9c21d79d4e36b173568c09a70 (patch)
tree54c691106c1c6a9d94d1c36164083162765e9eb4 /engines/titanic/game/sgt
parenta89dd72f2007b00304d0cc01ac4b6dc08ed6625e (diff)
downloadscummvm-rg350-5dd3798ebf8177d9c21d79d4e36b173568c09a70.tar.gz
scummvm-rg350-5dd3798ebf8177d9c21d79d4e36b173568c09a70.tar.bz2
scummvm-rg350-5dd3798ebf8177d9c21d79d4e36b173568c09a70.zip
TITANIC: Added a bunch of classes, loading method fixes
Diffstat (limited to 'engines/titanic/game/sgt')
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.cpp10
-rw-r--r--engines/titanic/game/sgt/sgt_state_room.h4
2 files changed, 12 insertions, 2 deletions
diff --git a/engines/titanic/game/sgt/sgt_state_room.cpp b/engines/titanic/game/sgt/sgt_state_room.cpp
index d244309351..e0d8de1282 100644
--- a/engines/titanic/game/sgt/sgt_state_room.cpp
+++ b/engines/titanic/game/sgt/sgt_state_room.cpp
@@ -24,7 +24,15 @@
namespace Titanic {
-CSGTStateRoomStatics *_statics;
+CSGTStateRoomStatics *CSGTStateRoom::_statics;
+
+void CSGTStateRoom::init() {
+ _statics = new CSGTStateRoomStatics();
+}
+
+void CSGTStateRoom::deinit() {
+ delete _statics;
+}
CSGTStateRoom::CSGTStateRoom() : CBackground(), _fieldE0(1),
_fieldE4(1), _fieldE8(0), _fieldEC(1), _fieldF0(1) {
diff --git a/engines/titanic/game/sgt/sgt_state_room.h b/engines/titanic/game/sgt/sgt_state_room.h
index ba70e541a3..f67a916f1f 100644
--- a/engines/titanic/game/sgt/sgt_state_room.h
+++ b/engines/titanic/game/sgt/sgt_state_room.h
@@ -46,7 +46,7 @@ struct CSGTStateRoomStatics {
class CSGTStateRoom : public CBackground {
private:
- CSGTStateRoomStatics *_statics;
+ static CSGTStateRoomStatics *_statics;
private:
int _fieldE0;
int _fieldE4;
@@ -55,6 +55,8 @@ private:
int _fieldF0;
public:
CSGTStateRoom();
+ static void init();
+ static void deinit();
/**
* Return the class name