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"
45class SystemClassRegistry;
57 WMETargetExecutable _targetExecutable;
64 void setGameRef(
BaseGame *game) { _gameRef = game; }
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: singleton.h:42
Definition: base_engine.h:47
Definition: base_file_manager.h:39
Definition: base_game.h:79
Definition: base_renderer.h:53
Definition: base_sound_manager.h:38
Definition: sys_class_registry.h:59
Language
Definition: language.h:45