aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/macventure.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/macventure/macventure.h')
-rw-r--r--engines/macventure/macventure.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/engines/macventure/macventure.h b/engines/macventure/macventure.h
index 457d685992..3ae195aef0 100644
--- a/engines/macventure/macventure.h
+++ b/engines/macventure/macventure.h
@@ -124,6 +124,12 @@ enum ObjectQueueID {
kAnimateBack = 14
};
+enum TextQueueID {
+ kTextNumber = 1,
+ kTextNewLine = 2,
+ kTextPlain = 3
+};
+
struct QueuedObject {
ObjectQueueID id;
ObjID object;
@@ -152,8 +158,17 @@ public:
void refreshReady();
void preparedToRun();
void gameChanged();
+ void winGame();
+ void loseGame();
+
+ bool updateState();
+ void revert();
void enqueueObject(ObjID id);
+ void enqueueText(TextQueueID type, ObjID target, ObjID source, ObjID text);
+
+ void runObjQueue();
+ void printTexts();
// Data retrieval
bool isPaused();
@@ -162,14 +177,13 @@ public:
Common::String getFilePath(FilePathID id) const;
bool isOldText() const;
const HuffmanLists *getDecodingHuffman() const;
+ uint32 randBetween(uint32 min, uint32 max);
private:
void processEvents();
bool runScriptEngine();
void endGame();
- bool updateState();
- void runObjQueue();
void updateControls();
void resetVars();
@@ -181,6 +195,8 @@ private:
ControlAction referenceToAction(ControlReference id);
uint objectsToApplyCommand();
+ const char* getGameFileName() const;
+
private: // Attributes
const ADGameDescription *_gameDescription;
@@ -217,10 +233,6 @@ private: // Attributes
Common::List<ObjID> _currentSelection;
Common::Point _deltaPoint;
-private: // Methods
-
- const char* getGameFileName() const;
-
};