diff options
author | Einar Johan Trøan Sømåen | 2013-04-17 19:51:57 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-17 19:51:57 +0200 |
commit | 122279a10a44aa8d0286780d9549ec13ab523dd1 (patch) | |
tree | e45387cc5b16da71b9698fbb48821b8f1821fbd2 /engines/wintermute | |
parent | cbae39ab8773908fd5945c4f93468148fb5d76ea (diff) | |
download | scummvm-rg350-122279a10a44aa8d0286780d9549ec13ab523dd1.tar.gz scummvm-rg350-122279a10a44aa8d0286780d9549ec13ab523dd1.tar.bz2 scummvm-rg350-122279a10a44aa8d0286780d9549ec13ab523dd1.zip |
WINTERMUTE: Privatize more members of BaseGame.
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/base/base_game.h | 16 | ||||
-rw-r--r-- | engines/wintermute/debugger.cpp | 4 |
2 files changed, 12 insertions, 8 deletions
diff --git a/engines/wintermute/base/base_game.h b/engines/wintermute/base/base_game.h index 4dfe45592b..5be1457668 100644 --- a/engines/wintermute/base/base_game.h +++ b/engines/wintermute/base/base_game.h @@ -94,10 +94,10 @@ public: bool _shuttingDown; virtual bool displayDebugInfo(); - bool _debugShowFPS; + + void setShowFPS(bool enabled) { _debugShowFPS = enabled; } bool _suspendedRendering; - int _soundBufferSizeSec; TTextEncoding _textEncoding; bool _textRTL; @@ -152,11 +152,8 @@ public: BaseGame(const Common::String &gameId); virtual ~BaseGame(); - void DEBUG_DebugDisable(); - void DEBUG_DebugEnable(const char *filename = nullptr); bool _debugDebugMode; - void *_debugLogFile; int _sequence; virtual bool loadFile(const char *filename); virtual bool loadBuffer(byte *buffer, bool complete = true); @@ -268,13 +265,20 @@ protected: VideoPlayer *_videoPlayer; VideoTheoraPlayer *_theoraPlayer; private: + bool _debugShowFPS; + void *_debugLogFile; + void DEBUG_DebugDisable(); + void DEBUG_DebugEnable(const char *filename = nullptr); + BaseObject *_mainObject; bool _mouseRightDown; bool _mouseMidlleDown; BaseGameSettings *_settings; - + + int _soundBufferSizeSec; + virtual bool invalidateDeviceObjects(); virtual bool restoreDeviceObjects(); diff --git a/engines/wintermute/debugger.cpp b/engines/wintermute/debugger.cpp index 0dab75356b..92b8e6251f 100644 --- a/engines/wintermute/debugger.cpp +++ b/engines/wintermute/debugger.cpp @@ -40,9 +40,9 @@ Console::~Console(void) { bool Console::Cmd_ShowFps(int argc, const char **argv) { if (argc > 1) { if (Common::String(argv[1]) == "true") { - _engineRef->_game->_debugShowFPS = true; + _engineRef->_game->setShowFPS(true); } else if (Common::String(argv[1]) == "false") { - _engineRef->_game->_debugShowFPS = false; + _engineRef->_game->setShowFPS(false);; } } return true; |