From 13102d05b02881f0037c29980d0dd5dd471256eb Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 2 Jul 2019 03:37:12 +0530 Subject: HDB: Add _msgInfo --- engines/hdb/window.cpp | 2 ++ engines/hdb/window.h | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) (limited to 'engines') diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp index d353c8f28e..6adc2ba43c 100644 --- a/engines/hdb/window.cpp +++ b/engines/hdb/window.cpp @@ -90,6 +90,8 @@ bool Window::init() { } void Window::restartSystem() { + _numMsgQueue = 0; + _msgInfo.active = false; _dialogInfo.active = false; _dialogChoiceInfo.active = false; _invWinInfo.active = false; diff --git a/engines/hdb/window.h b/engines/hdb/window.h index 542f26d02d..b7a3c5fb6a 100644 --- a/engines/hdb/window.h +++ b/engines/hdb/window.h @@ -30,6 +30,7 @@ enum { kDialogTextRight = (kDialogTextLeft + kTileWidth * 9), kOpenDialogTextLeft = kDialogTextLeft, kOpenDialogTextRight = (kDialogTextRight + kTileWidth * 2), + kMaxMsgQueue = 10, kWeaponX = (480 - 34), kWeaponY = 2, kInvItemSpaceX = 48, @@ -88,6 +89,16 @@ struct DialogChoiceInfo { } }; +struct MessageInfo { + bool active; + char title[128]; + int timer; + int x, y; + int width, height; + + MessageInfo() : active(false), title(""), timer(0), x(0), y(0), width(0), height(0) {} +}; + struct InvWinInfo { int x, y; int width, height; @@ -183,10 +194,16 @@ private: DialogChoiceInfo _dialogChoiceInfo; + MessageInfo _msgInfo; + InvWinInfo _invWinInfo; Common::Array _textOutList; DlvsInfo _dlvsInfo; + char _msgQueueStr[kMaxMsgQueue][128]; + int _msgQueueWait[kMaxMsgQueue]; + int _numMsgQueue; + // Windows GFX Picture *_gfxTL, *_gfxTM, *_gfxTR; Picture *_gfxL, *_gfxM, *_gfxR; -- cgit v1.2.3