diff options
Diffstat (limited to 'engines/xeen/resources.cpp')
-rw-r--r-- | engines/xeen/resources.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/xeen/resources.cpp b/engines/xeen/resources.cpp index f99be12c3d..e9c31e337f 100644 --- a/engines/xeen/resources.cpp +++ b/engines/xeen/resources.cpp @@ -206,9 +206,27 @@ void Resources::init(XeenEngine *vm) { /*------------------------------------------------------------------------*/ +/** + * Opens the given file, throwing an error if it can't be opened + */ void File::openFile(const Common::String &filename) { if (!Common::File::open(filename)) error("Could not open file - %s", filename.c_str()); } +/*------------------------------------------------------------------------*/ + +SpriteResource::SpriteResource(const Common::String &filename) { + +} + +int SpriteResource::size() const { + return _frames.size(); +} + +const XSurface &SpriteResource::getFrame(int frame) { + return _frames[frame]; +} + + } // End of namespace Xeen |