aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/robot.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/graphics/robot.h')
-rw-r--r--engines/sci/graphics/robot.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/sci/graphics/robot.h b/engines/sci/graphics/robot.h
index bc6b698522..ffb4d0e6e7 100644
--- a/engines/sci/graphics/robot.h
+++ b/engines/sci/graphics/robot.h
@@ -26,12 +26,14 @@
#ifndef SCI_GRAPHICS_ROBOT_H
#define SCI_GRAPHICS_ROBOT_H
-#include "common/file.h"
-
#include "sound/audiostream.h"
#include "sound/mixer.h"
#include "sound/decoders/raw.h"
+namespace Common {
+ class SeekableSubReadStreamEndian;
+}
+
namespace Sci {
#ifdef ENABLE_SCI32
@@ -59,7 +61,7 @@ public:
void processNextFrame();
uint16 getCurFrame() { return _curFrame; }
uint16 getFrameCount() { return _header.frameCount; }
- bool isPlaying() { return _resourceId != -1; }
+ bool isPlaying() { return _robotFile != 0; }
void playAudio();
private:
@@ -75,13 +77,12 @@ private:
byte _savedPal[256 * 4];
- Common::File _robotFile;
+ Common::SeekableSubReadStreamEndian *_robotFile;
Audio::QueuingAudioStream *_audioStream;
Audio::SoundHandle _audioHandle;
RobotHeader _header;
- GuiResourceId _resourceId;
uint16 _x;
uint16 _y;
uint16 _curFrame;