28 #ifndef WINTERMUTE_BASE_ENGINE_H 29 #define WINTERMUTE_BASE_ENGINE_H 31 #include "common/str.h" 32 #include "common/singleton.h" 33 #include "common/random.h" 34 #include "common/language.h" 36 #include "engines/wintermute/detection.h" 40 class BaseFileManager;
45 class SystemClassRegistry;
57 WMETargetExecutable _targetExecutable;
64 void setGameRef(
BaseGame *gameRef) { _gameRef = gameRef; }
67 uint32 randInt(
int from,
int to);
70 BaseGame *getGameRef() {
return _gameRef; }
74 static const Timer *getTimer();
75 static const Timer *getLiveTimer();
76 static void LOG(
bool res,
const char *fmt, ...);
80 uint32 getFlags()
const {
return _flags; }
81 WMETargetExecutable getTargetExecutable()
const {
82 return _targetExecutable;
84 static bool isFoxTailCheck(WMETargetExecutable t, WMETargetExecutable v1=FOXTAIL_OLDEST_VERSION, WMETargetExecutable v2=FOXTAIL_LATEST_VERSION) {
85 return t >= v1 && t <= v2;
87 bool isFoxTail(WMETargetExecutable v1=FOXTAIL_OLDEST_VERSION, WMETargetExecutable v2=FOXTAIL_LATEST_VERSION)
const {
88 return isFoxTailCheck(_targetExecutable, v1, v2);
90 void addFlags(uint32 flags) { _flags |= flags; }
Definition: base_game.h:75
Definition: base_file_manager.h:39
Definition: sys_class_registry.h:59
Definition: base_engine.h:47
Definition: base_renderer.h:53
Definition: base_sound_manager.h:38
Definition: achievements_tables.h:27
Definition: singleton.h:42
Language
Definition: language.h:45