aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/draci/game.h')
-rw-r--r--engines/draci/game.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/draci/game.h b/engines/draci/game.h
index 5bd2074489..bdbb402795 100644
--- a/engines/draci/game.h
+++ b/engines/draci/game.h
@@ -27,16 +27,19 @@
#define DRACI_GAME_H
#include "common/str.h"
+#include "draci/script.h"
namespace Draci {
+class DraciEngine;
+
enum StructSizes {
personSize = sizeof(uint16) * 2 + sizeof(byte)
};
struct GameObject {
- GameObject() : _seqTab(NULL), _title(NULL), _program(NULL) {}
+ GameObject() : _seqTab(NULL), _title(NULL) {}
~GameObject();
uint16 _init, _look, _use, _canUse;
@@ -49,9 +52,8 @@ struct GameObject {
uint16 _absNum;
byte _animObj;
uint16 *_seqTab;
- byte *_program;
+ GPL2Program _program;
byte *_title;
- uint32 _progLen;
};
struct GameInfo {
@@ -76,10 +78,12 @@ struct Person {
class Game {
public:
- Game();
+ Game(DraciEngine *vm);
~Game();
private:
+ DraciEngine *_vm;
+
GameInfo *_info;
Person *_persons;
uint16 *_dialogOffsets;