aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/game.h
diff options
context:
space:
mode:
authorDenis Kasak2009-08-02 05:21:21 +0000
committerDenis Kasak2009-08-02 05:21:21 +0000
commitf9bdd096595ceb924ffec95ea6f8225513e85670 (patch)
tree826bb3468281fa46908a1418d3a232206e76ca63 /engines/draci/game.h
parent77033ca9a1a61e9de988849618ddd12ad28f7e7b (diff)
downloadscummvm-rg350-f9bdd096595ceb924ffec95ea6f8225513e85670.tar.gz
scummvm-rg350-f9bdd096595ceb924ffec95ea6f8225513e85670.tar.bz2
scummvm-rg350-f9bdd096595ceb924ffec95ea6f8225513e85670.zip
* Fixed bug when reading in persons data. I was reading in coordinates as bytes and font colour as int16; it should be the other way around.
* Handled the kStatusTalk loop substatus properly inside Game::loop(). * Made Game::walkHero() set the person coordinates for the dragon after it warps him to a new location * Added Game::getPerson() method (used by Script::talk()) * Added Game::setSpeechTick() method (set by Script::talk() and used inside the loop to determine when to switch to new text). svn-id: r42994
Diffstat (limited to 'engines/draci/game.h')
-rw-r--r--engines/draci/game.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/draci/game.h b/engines/draci/game.h
index a38b71a256..33b6e76894 100644
--- a/engines/draci/game.h
+++ b/engines/draci/game.h
@@ -47,6 +47,11 @@ enum {
kNotFound = -1
};
+enum SpeechConstants {
+ kBaseSpeechDuration = 200,
+ kSpeechTimeUnit = 400
+};
+
class WalkingMap {
public:
@@ -204,6 +209,8 @@ public:
int getVariable(int varNum);
void setVariable(int varNum, int value);
+ Person *getPerson(int personID);
+
int getRoomNum();
void setRoomNum(int room);
@@ -228,6 +235,8 @@ public:
void runGateProgram(int gate);
+ void setSpeechTick(uint tick);
+
bool _roomChange;
private:
@@ -252,6 +261,8 @@ private:
bool _shouldQuit;
bool _shouldExitLoop;
+ uint _speechTick;
+
int _objUnderCursor;
int _markedAnimationIndex; //!< Used by the Mark GPL command
};