diff options
Diffstat (limited to 'engines/titanic/titanic.h')
-rw-r--r-- | engines/titanic/titanic.h | 61 |
1 files changed, 30 insertions, 31 deletions
diff --git a/engines/titanic/titanic.h b/engines/titanic/titanic.h index 4742f51d82..cf0a4d3c67 100644 --- a/engines/titanic/titanic.h +++ b/engines/titanic/titanic.h @@ -23,23 +23,13 @@ #ifndef TITANIC_TITANIC_H #define TITANIC_TITANIC_H -#include "common/scummsys.h" -#include "common/random.h" -#include "common/str-array.h" -#include "common/system.h" -#include "common/serializer.h" -#include "engines/advancedDetector.h" -#include "engines/engine.h" -#include "graphics/screen.h" -#include "titanic/debugger.h" -#include "titanic/events.h" -#include "titanic/support/files_manager.h" -#include "titanic/main_game_window.h" -#include "titanic/support/exe_resources.h" -#include "titanic/support/movie_manager.h" -#include "titanic/support/screen_manager.h" -#include "titanic/support/string.h" -#include "titanic/true_talk/tt_script_base.h" +#include "common/random.h" // getRandomNumber and getRandomFloat +#include "engines/engine.h" // class Engine +#include "titanic/support/exe_resources.h" // class CExeResources +#include "titanic/support/movie_manager.h" // class CMovieManager +#include "titanic/support/string.h" // class StringArray; +#include "titanic/support/strings.h" // class Strings; +#include "common/language.h" // Language enum /** * This is the namespace of the Titanic engine. @@ -49,24 +39,25 @@ * Games using this engine: * - Starship Titanic */ -namespace Titanic { -enum TitanicDebugChannels { - kDebugCore = 1 << 0, - kDebugScripts = 1 << 1, - kDebugGraphics = 1 << 2, - kDebugStarfield = 1 << 3 -}; +class OSystem; + +namespace Graphics { +class Screen; +} + +namespace Common { +class Error; +class FSNode; +} + +namespace Titanic { #define TITANIC_SAVEGAME_VERSION 1 #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 -#define DEBUG_BASIC 1 -#define DEBUG_INTERMEDIATE 2 -#define DEBUG_DETAILED 3 - #define TOTAL_ITEMS 46 #define TOTAL_ROOMS 34 @@ -80,8 +71,16 @@ enum TitanicDebugChannels { // the game redundantly suggest removing the fuse, which is wrong //#define FIX_DISPENSOR_TEMPATURE +class CFilesManager; +class CMainGameWindow; +class CString; +class CTrueTalkManager; +class Debugger; +class Events; +class OSScreenManager; +class CScriptHandler; +class TTscriptBase; struct TitanicGameDescription; -class TitanicEngine; class TitanicEngine : public Engine { private: @@ -172,12 +171,12 @@ public: bool isGerman() const { return getLanguage() == Common::DE_DEU; } /** - * Gets a random number + * Returns a uniform random unsigned integer in the interval [0, max] */ uint getRandomNumber(uint max) { return _randomSource.getRandomNumber(max); } /** - * Returns a random floating point number between 0.0 to 65535.0 + * Returns a uniform random floating point number in the interval [0.0, 65535.0] */ double getRandomFloat() { return getRandomNumber(0xfffffffe) * 0.000015259022; } |