diff options
author | Filippos Karapetis | 2019-06-10 01:16:48 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-06-11 00:48:15 +0300 |
commit | 3f7f1a24108b1333908e82fd01455ea4f863afd3 (patch) | |
tree | e8bc7506632e942dacb29b18afbaa1a9705bdb60 /engines/startrek/object.h | |
parent | 9ba6b79e1a0bd48fe69879a145c63296e631cf5f (diff) | |
download | scummvm-rg350-3f7f1a24108b1333908e82fd01455ea4f863afd3.tar.gz scummvm-rg350-3f7f1a24108b1333908e82fd01455ea4f863afd3.tar.bz2 scummvm-rg350-3f7f1a24108b1333908e82fd01455ea4f863afd3.zip |
STARTREK: Remove the FileStream wrapper class
Diffstat (limited to 'engines/startrek/object.h')
-rw-r--r-- | engines/startrek/object.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/startrek/object.h b/engines/startrek/object.h index 6a32983ff1..1b945ffee6 100644 --- a/engines/startrek/object.h +++ b/engines/startrek/object.h @@ -28,14 +28,18 @@ #include "startrek/items.h" #include "startrek/sprite.h" +#include "common/ptr.h" +#include "common/stream.h" +#include "common/memstream.h" #include "common/scummsys.h" namespace StarTrek { class StarTrekEngine; -class FileStream; class Room; +// FIXME: Eventually get rid of Common::SharedPtr and dispose of file streams properly +typedef Common::SharedPtr<Common::MemoryReadStreamEndian> FileStream; // Objects 0-31 are "actors" that are drawn to the screen, are animated, etc. // Objects 32-63 are "hotspots" corresponding to specific regions in the screen. @@ -82,7 +86,7 @@ struct Actor { Sprite sprite; Common::String bitmapFilename; Fixed8 scale; - SharedPtr<FileStream> animFile; + FileStream animFile; uint16 numAnimFrames; uint16 animFrame; uint32 frameToStartNextAnim; |