diff options
author | Paul Gilbert | 2014-03-17 21:53:22 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-17 21:53:22 -0400 |
commit | 0c8a3a47e28075bd559be43bde910587af35d8ab (patch) | |
tree | 70f5dee3600fd38e1919553f9e44a7b77f7a9a8e /engines/mads/sprites.h | |
parent | d57d4b876e90d1d043bd171c9de46d93c9e014f4 (diff) | |
download | scummvm-rg350-0c8a3a47e28075bd559be43bde910587af35d8ab.tar.gz scummvm-rg350-0c8a3a47e28075bd559be43bde910587af35d8ab.tar.bz2 scummvm-rg350-0c8a3a47e28075bd559be43bde910587af35d8ab.zip |
MADS: Transformed ImageInterEntries to be User Interface UISlots
Diffstat (limited to 'engines/mads/sprites.h')
-rw-r--r-- | engines/mads/sprites.h | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/engines/mads/sprites.h b/engines/mads/sprites.h index 82f0a9b10d..cf45be6806 100644 --- a/engines/mads/sprites.h +++ b/engines/mads/sprites.h @@ -30,7 +30,7 @@ namespace MADS { -enum SpriteType { +enum SlotType { ST_NONE = 0, ST_FOREGROUND = 1, ST_BACKGROUND = -4, ST_FULL_SCREEN_REFRESH = -2, ST_EXPIRED = -1 }; @@ -129,11 +129,11 @@ private: static MADSEngine *_vm; friend class SpriteSlots; public: - SpriteType _spriteType; + SlotType _SlotType; int _seqIndex; public: SpriteSlot(); - SpriteSlot(SpriteType type, int seqIndex); + SpriteSlot(SlotType type, int seqIndex); void setup(int dirtyAreaIndex); bool operator==(const SpriteSlotSubset &other) const; @@ -200,10 +200,12 @@ class SpriteSets : public Common::Array<SpriteAsset *> { private: MADSEngine *_vm; public: + int _assetCount; + /** * Constructor */ - SpriteSets(MADSEngine *vm) : _vm(vm) {} + SpriteSets(MADSEngine *vm) : _vm(vm), _assetCount(0) {} /** * Destructor @@ -224,27 +226,11 @@ public: * Adds a sprite asset to the list by name */ int addSprites(const Common::String &resName, int flags = 0); -}; - -class ImageInterEntry { -public: - int _field0; - int _field2; - int _field3; - int _field4; - int _field6; - int _field8; - - ImageInterEntry(); -}; -class ImageInterEntries: public Common::Array<ImageInterEntry> { -public: - void add(int v1, int v2); - void add(int v1, int v2, int v3, int v4); - ImageInterEntry &add(); - - void call(int v1, int v2); + /** + * Remove an asset from the list + */ + void remove(int idx); }; } // End of namespace MADS |