From 0664b51d2f3c61a2cba64cc6c42b00d86057d908 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Tue, 15 Mar 2016 20:06:03 +0100 Subject: ADL: Add bell function --- engines/adl/adl.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engines/adl/adl.h') diff --git a/engines/adl/adl.h b/engines/adl/adl.h index b118a3741a..9ccd02ba6a 100644 --- a/engines/adl/adl.h +++ b/engines/adl/adl.h @@ -26,18 +26,26 @@ #include "common/array.h" #include "common/rect.h" #include "common/str.h" +#include "common/hashmap.h" +#include "common/hash-str.h" #include "engines/engine.h" +#include "audio/mixer.h" +#include "audio/softsynth/pcspk.h" + namespace Common { class ReadStream; class SeekableReadStream; +class File; +struct Event; } namespace Adl { class Display; class GraphicsMan; +class Speaker; struct AdlGameDescription; // Conditional opcodes @@ -138,6 +146,8 @@ class AdlEngine : public Engine { public: virtual ~AdlEngine(); + static bool pollEvent(Common::Event &event); + protected: AdlEngine(OSystem *syst, const AdlGameDescription *gd); @@ -158,6 +168,9 @@ protected: void clearScreen() const; void drawItems() const; + // Sound + void bell(uint count = 1) const; + // Game state functions const Room &getRoom(uint i) const; Room &getRoom(uint i); @@ -176,6 +189,7 @@ protected: Display *_display; GraphicsMan *_graphics; + Speaker *_speaker; // Message strings in data file Common::Array _messages; -- cgit v1.2.3