From 555d4038cc053c0c914dd1cb56746066446a1386 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 31 May 2009 11:37:21 +0000 Subject: Slowed down the game to match the original, and introduced the ability to alter game speed using the keypad +/- keys svn-id: r41064 --- engines/cruise/cruise.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/cruise/cruise.h') diff --git a/engines/cruise/cruise.h b/engines/cruise/cruise.h index 491a833788..1599c992ac 100644 --- a/engines/cruise/cruise.h +++ b/engines/cruise/cruise.h @@ -42,7 +42,8 @@ enum CruiseGameType { GType_CRUISE = 1 }; -#define GAME_FRAME_DELAY 40 +#define GAME_FRAME_DELAY_1 50 +#define GAME_FRAME_DELAY_2 100 #define MAX_LANGUAGE_STRINGS 25 @@ -63,13 +64,15 @@ private: Common::StringList _langStrings; CursorType _savedCursor; uint32 lastTick, lastTickDebug; + int _gameSpeed; + bool _speedFlag; void initialize(void); void deinitialise(void); bool loadLanguageStrings(); bool makeLoad(char *saveName); void mainLoop(); - + int processInput(void); protected: // Engine APIs virtual Common::Error run(); -- cgit v1.2.3