diff options
author | Filippos Karapetis | 2014-12-03 00:06:38 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-03 00:06:38 +0200 |
commit | 637102d33b9ab69724c1badd9515e0e26a4b4b88 (patch) | |
tree | 72fe1291306ceb12c4da2956ab22814741dddce9 /engines/zvision/cursors/cursor.h | |
parent | b1f7603263c368658a3b9b7e30a929bd77d895af (diff) | |
parent | 596a904a0c6aedba5bbe45cdfa931425450626c8 (diff) | |
download | scummvm-rg350-637102d33b9ab69724c1badd9515e0e26a4b4b88.tar.gz scummvm-rg350-637102d33b9ab69724c1badd9515e0e26a4b4b88.tar.bz2 scummvm-rg350-637102d33b9ab69724c1badd9515e0e26a4b4b88.zip |
Merge pull request #532 from Marisa-Chan/zvision
ZVISION: More complete engine implementation
Diffstat (limited to 'engines/zvision/cursors/cursor.h')
-rw-r--r-- | engines/zvision/cursors/cursor.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/engines/zvision/cursors/cursor.h b/engines/zvision/cursors/cursor.h index be9fae64da..57db561655 100644 --- a/engines/zvision/cursors/cursor.h +++ b/engines/zvision/cursors/cursor.h @@ -24,6 +24,7 @@ #define ZVISION_CURSOR_H #include "graphics/surface.h" +#include "zvision/zvision.h" namespace Common { @@ -40,6 +41,7 @@ class ZorkCursor { public: ZorkCursor(); ZorkCursor(const Common::String &fileName); + ZorkCursor(ZVision *engine, const Common::String &fileName); ZorkCursor(const ZorkCursor &other); ~ZorkCursor(); @@ -53,12 +55,24 @@ private: public: ZorkCursor &operator=(const ZorkCursor &other); - uint16 getWidth() const { return _width; } - uint16 getHeight() const { return _height; } - uint16 getHotspotX() const { return _hotspotX; } - uint16 getHotspotY() const { return _hotspotY; } - byte getKeyColor() const { return 0; } - const byte *getSurface() const { return (const byte *)_surface.getPixels(); } + uint16 getWidth() const { + return _width; + } + uint16 getHeight() const { + return _height; + } + uint16 getHotspotX() const { + return _hotspotX; + } + uint16 getHotspotY() const { + return _hotspotY; + } + byte getKeyColor() const { + return 0; + } + const byte *getSurface() const { + return (const byte *)_surface.getPixels(); + } }; } // End of namespace ZVision |