aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl.h
diff options
context:
space:
mode:
authorWalter van Niftrik2016-03-15 20:06:03 +0100
committerWalter van Niftrik2016-06-06 20:35:49 +0200
commit0664b51d2f3c61a2cba64cc6c42b00d86057d908 (patch)
tree15b7f68c4e427d1325f3226efb090999cda85e2a /engines/adl/adl.h
parentb4aea80723460417f3514c8d27a41d69195cd23f (diff)
downloadscummvm-rg350-0664b51d2f3c61a2cba64cc6c42b00d86057d908.tar.gz
scummvm-rg350-0664b51d2f3c61a2cba64cc6c42b00d86057d908.tar.bz2
scummvm-rg350-0664b51d2f3c61a2cba64cc6c42b00d86057d908.zip
ADL: Add bell function
Diffstat (limited to 'engines/adl/adl.h')
-rw-r--r--engines/adl/adl.h14
1 files changed, 14 insertions, 0 deletions
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<Common::String> _messages;