diff options
Diffstat (limited to 'engines/xeen/town.h')
-rw-r--r-- | engines/xeen/town.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/xeen/town.h b/engines/xeen/town.h index 8f6ef15710..5aa31e571c 100644 --- a/engines/xeen/town.h +++ b/engines/xeen/town.h @@ -32,8 +32,10 @@ namespace Xeen { class XeenEngine; +class TownMessage; class Town: public ButtonContainer { + friend class TownMessage; private: XeenEngine *_vm; SpriteResource _icons1, _icons2; @@ -105,6 +107,22 @@ public: bool isActive() const; }; +class TownMessage : public ButtonContainer { +private: + XeenEngine *_vm; + SpriteResource _iconSprites; + + TownMessage(XeenEngine *vm) : ButtonContainer(), _vm(vm) {} + + bool execute(int portrait, const Common::String &name, + const Common::String &text, int confirm); + + void loadButtons(); +public: + static bool show(XeenEngine *vm, int portrait, const Common::String &name, + const Common::String &text, int confirm); +}; + } // End of namespace Xeen #endif /* XEEN_SPELLS_H */ |