diff options
author | Benjamin Haisch | 2008-05-21 10:07:33 +0000 |
---|---|---|
committer | Benjamin Haisch | 2008-05-21 10:07:33 +0000 |
commit | 4074d49844d6851d377374f1d04d43fb9fdad6a8 (patch) | |
tree | 4c8d8e059958223ded9d44a345a4b8ded1c62124 /engines/made/screen.h | |
parent | 529800e1728b9d1ce89bf7faf4dfd86d6cb25e5f (diff) | |
download | scummvm-rg350-4074d49844d6851d377374f1d04d43fb9fdad6a8.tar.gz scummvm-rg350-4074d49844d6851d377374f1d04d43fb9fdad6a8.tar.bz2 scummvm-rg350-4074d49844d6851d377374f1d04d43fb9fdad6a8.zip |
- Moved event polling from sfPollEvent to runScript
- LGOP2: Fixed problem where Barth's gun was drawn at the wrong position
svn-id: r32205
Diffstat (limited to 'engines/made/screen.h')
-rw-r--r-- | engines/made/screen.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/engines/made/screen.h b/engines/made/screen.h index 910096cacd..d0df3bf080 100644 --- a/engines/made/screen.h +++ b/engines/made/screen.h @@ -42,7 +42,7 @@ struct SpriteChannel { int16 state; int16 needRefresh; uint16 index; - int16 x, y, xofs, yofs; + int16 x, y; int16 x1, y1, x2, y2; uint32 area; uint16 fontNum; @@ -56,6 +56,10 @@ struct ClipInfo { Graphics::Surface *destSurface; }; +struct SpriteListItem { + int16 index, xofs, yofs; +}; + class MadeEngine; class Screen { @@ -120,8 +124,6 @@ public: uint16 setChannelLocation(uint16 channelIndex, int16 x, int16 y); uint16 setChannelContent(uint16 channelIndex, uint16 index); void setChannelUseMask(uint16 channelIndex); - void setChannelOffsets(uint16 channelIndex, int16 xofs, int16 yofs); - void getChannelOffsets(uint16 channelIndex, int16 &xofs, int16 &yofs); void drawSpriteChannels(const ClipInfo &clipInfo, int16 includeStateMask, int16 excludeStateMask); void updateSprites(); void clearChannels(); @@ -161,6 +163,10 @@ public: void showWorkScreen(); void updateScreenAndWait(int delay); + int16 addToSpriteList(int16 index, int16 xofs, int16 yofs); + SpriteListItem getFromSpriteList(int16 index); + void clearSpriteList(); + protected: MadeEngine *_vm; ScreenEffects *_fx; @@ -194,6 +200,8 @@ protected: uint16 _channelsUsedCount; SpriteChannel _channels[100]; + Common::Array<SpriteListItem> _spriteList; + }; } // End of namespace Made |