HDB: Add paint() to draw static images

This commit is contained in:
Nipun Garg 2019-06-18 23:08:44 +05:30 committed by Eugene Sandulenko
parent 2c2df56fdf
commit 1457383df2
2 changed files with 21 additions and 0 deletions

View File

@ -121,6 +121,25 @@ void HDBGame::changeGameState() {
}
}
void HDBGame::paint() {
switch (_gameState) {
case GAME_TITLE:
warning("STUB: MENU::DrawTitle required");
break;
case GAME_MENU:
warning("STUB: MENU::DrawMenu required");
break;
case GAME_PLAY:
warning("STUB: DrawMan::DrawPointer required");
break;
case GAME_LOADING:
warning("STUB: DrawMan::DrawLoadingScreen required");
break;
}
_drawMan->updateVideo();
}
Common::Error HDBGame::run() {
// Initialize System
@ -193,6 +212,7 @@ Common::Error HDBGame::run() {
_drawMan->drawSky();
_map->draw();
_ai->processCines();
paint();
g_system->updateScreen();
g_system->delayMillis(10);

View File

@ -112,6 +112,7 @@ public:
void start();
void changeGameState();
void paint();
bool _gameShutdown;
Graphics::PixelFormat _format;