diff options
author | Matthew Stewart | 2018-05-19 21:15:13 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | a6bee58f62f3d7d696c6b5493f248390d5c303ac (patch) | |
tree | b64fdb3711fdfff7ead9068c9edf76ed57c8bbdf /engines/startrek/filestream.h | |
parent | f66b77d9fd34e4845a214e1c1ff42e5e2211c991 (diff) | |
download | scummvm-rg350-a6bee58f62f3d7d696c6b5493f248390d5c303ac.tar.gz scummvm-rg350-a6bee58f62f3d7d696c6b5493f248390d5c303ac.tar.bz2 scummvm-rg350-a6bee58f62f3d7d696c6b5493f248390d5c303ac.zip |
STARTREK: Default behaviour for look action
Diffstat (limited to 'engines/startrek/filestream.h')
-rw-r--r-- | engines/startrek/filestream.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/engines/startrek/filestream.h b/engines/startrek/filestream.h index dcc806043c..79a919ac22 100644 --- a/engines/startrek/filestream.h +++ b/engines/startrek/filestream.h @@ -26,25 +26,31 @@ namespace StarTrek { -class FileStream : public Common::SeekableReadStreamEndian { +class FileStream { public: FileStream(Common::SeekableReadStream *stream, bool bigEndian); ~FileStream(); + byte *_data; + private: - Common::SeekableReadStream *_stream; bool _bigEndian; + int32 _pos; + int32 _size; public: // ReadStream functions - virtual bool eos() const; - virtual uint32 read(void *dataPtr, uint32 dataSize); + bool eos() const; + uint32 read(void *dataPtr, uint32 dataSize); + + byte readByte(); + uint16 readUint16(); // SeekableReadStream functions - virtual int32 pos() const; - virtual int32 size() const; - virtual bool seek(int32 offset, int whence); + int32 pos() const; + int32 size() const; + bool seek(int32 offset, int whence); }; |