From 40b3ab62ca8a16c2fd06bfcc691967c4f510d52a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 21 Feb 2014 21:03:44 -0500 Subject: MADS: Fixes for reading in HOGANUS entries --- engines/mads/nebular/dialogs_nebular.h | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'engines/mads/nebular/dialogs_nebular.h') diff --git a/engines/mads/nebular/dialogs_nebular.h b/engines/mads/nebular/dialogs_nebular.h index a747f7575d..6417c2cdc3 100644 --- a/engines/mads/nebular/dialogs_nebular.h +++ b/engines/mads/nebular/dialogs_nebular.h @@ -20,8 +20,8 @@ * */ -#ifndef MADS_GAME_NEBULAR_H -#define MADS_GAME_NEBULAR_H +#ifndef MADS_DIALOGS_NEBULAR_H +#define MADS_DIALOGS_NEBULAR_H #include "common/scummsys.h" #include "mads/game.h" @@ -30,15 +30,37 @@ namespace MADS { namespace Nebular { +struct HOGANUS { + int _bookId; + int _pageNum; + int _lineNum; + int _wordNum; + Common::String _word; +}; + class CopyProtectionDialog { private: + MADSEngine *_vm; + HOGANUS _hogEntry; + + /** + * Constructor + */ + CopyProtectionDialog(MADSEngine *vm); + /** + * Get a random copy protection entry from the HOGANUS resource + */ + bool getHogAnusEntry(HOGANUS &entry); public: - static bool show() { return false; } + /** + * Show the dialog + */ + static bool show(MADSEngine *vm); }; } // End of namespace Nebular } // End of namespace MADS -#endif /* MADS_GAME_NEBULAR_H */ +#endif /* MADS_DIALOGS_NEBULAR_H */ -- cgit v1.2.3