aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/star_control_sub9.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/star_control/star_control_sub9.h')
-rw-r--r--engines/titanic/star_control/star_control_sub9.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/engines/titanic/star_control/star_control_sub9.h b/engines/titanic/star_control/star_control_sub9.h
index 67a14a5109..ad05a4a478 100644
--- a/engines/titanic/star_control/star_control_sub9.h
+++ b/engines/titanic/star_control/star_control_sub9.h
@@ -23,18 +23,30 @@
#ifndef TITANIC_STAR_CONTROL_SUB9_H
#define TITANIC_STAR_CONTROL_SUB9_H
+#include "common/array.h"
+
namespace Titanic {
class CStarControlSub9 {
- struct ArrayEntry {
+ struct DataEntry {
+ int _v1;
+ int _v2;
+ int _v3;
+ int _v4;
+ };
+
+ class RootEntry : public Common::Array<DataEntry> {
+ public:
int _field0;
- int _field4;
- int _field8;
- ArrayEntry() : _field0(0), _field4(0), _field8(0) {}
+ RootEntry() : _field0(0) {}
};
private:
- ArrayEntry _array[80];
+ Common::Array<RootEntry> _data;
public:
+ /**
+ * Initializes the data
+ */
+ void initialize();
};
} // End of namespace Titanic