aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/robot.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-02-07 01:56:30 +0000
committerMatthew Hoops2011-02-07 01:56:30 +0000
commitcf918d72e5c959b10b0de162db6cbcfaf08c5e82 (patch)
tree70b73eca8902157be470804ccc7d461bf894101c /engines/sci/graphics/robot.h
parentaa64cf1d6298dd02c6e19079dcca0a25536ec366 (diff)
downloadscummvm-rg350-cf918d72e5c959b10b0de162db6cbcfaf08c5e82.tar.gz
scummvm-rg350-cf918d72e5c959b10b0de162db6cbcfaf08c5e82.tar.bz2
scummvm-rg350-cf918d72e5c959b10b0de162db6cbcfaf08c5e82.zip
SCI: Add support for Mac robot files
svn-id: r55797
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;