From 1457383df2c8bb43e0e6917cab9fe816fa6c7162 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 23:08:44 +0530 Subject: HDB: Add paint() to draw static images --- engines/hdb/hdb.cpp | 20 ++++++++++++++++++++ engines/hdb/hdb.h | 1 + 2 files changed, 21 insertions(+) (limited to 'engines/hdb') diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 9d15585e59..934d16fdc5 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -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); diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index f548bed92e..09c9d6f11d 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -112,6 +112,7 @@ public: void start(); void changeGameState(); + void paint(); bool _gameShutdown; Graphics::PixelFormat _format; -- cgit v1.2.3