aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/hdb.cpp16
-rw-r--r--engines/hdb/hdb.h16
2 files changed, 16 insertions, 16 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index aa5f2c7381..528eff88e1 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -47,14 +47,14 @@ HDBGame::~HDBGame() {
}
bool HDBGame::init() {
- voiceless = false;
+ _voiceless = false;
/*
Game Subsystem Initializations
*/
// Init _fileMan
- if (_fileMan->openMPC("hyperdemo.mpc")) {
+ if (fileMan->openMPC("hyperdemo.mpc")) {
gameShutdown = false;
return true;
}
@@ -64,7 +64,7 @@ bool HDBGame::init() {
}
void HDBGame::start() {
- gameState = GameState::GAME_TITLE;
+ _gameState = GameState::GAME_TITLE;
}
/*
@@ -78,15 +78,15 @@ void HDBGame::start() {
*/
void HDBGame::changeGameState() {
- switch (gameState) {
+ switch (_gameState) {
case GameState::GAME_TITLE:
- gameState = GameState::GAME_MENU;
+ _gameState = GameState::GAME_MENU;
break;
case GameState::GAME_MENU:
- gameState = GameState::GAME_PLAY;
+ _gameState = GameState::GAME_PLAY;
break;
case GameState::GAME_PLAY:
- gameState = GameState::GAME_MENU;
+ _gameState = GameState::GAME_MENU;
break;
}
}
@@ -94,7 +94,7 @@ void HDBGame::changeGameState() {
Common::Error HDBGame::run() {
// Initializes Graphics
Graphics::PixelFormat format(4, 8, 8, 8, 8, 24, 16, 8, 0);
- initGraphics(800, 600, &format);
+ initGraphics(640, 320, &format);
_console = new Console();
/*
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h
index 3a24d3bba4..eb94cd73b9 100644
--- a/engines/hdb/hdb.h
+++ b/engines/hdb/hdb.h
@@ -70,6 +70,12 @@ public:
const char *getGameId() const;
Common::Platform getPlatform() const;
+ /*
+ Game System Pointers
+ */
+
+ FileMan* fileMan;
+
// Game related members;
bool init();
@@ -81,17 +87,11 @@ public:
private:
Console *_console;
-
- /*
- Game System Pointers
- */
-
- FileMan* _fileMan;
// Game Variables
- GameState gameState;
- bool voiceless;
+ GameState _gameState;
+ bool _voiceless;
};