diff options
author | Paul Gilbert | 2010-04-21 10:42:01 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-04-21 10:42:01 +0000 |
commit | 3edc151c5bde78eaa810a7ddc6092e9c920fb9c6 (patch) | |
tree | e5d852cedba0f65a248d3fa6846cb37734c075b6 /engines/m4/mads_views.h | |
parent | 2e89d9607d9190e58bbd7f1f1689a758899309f7 (diff) | |
download | scummvm-rg350-3edc151c5bde78eaa810a7ddc6092e9c920fb9c6.tar.gz scummvm-rg350-3edc151c5bde78eaa810a7ddc6092e9c920fb9c6.tar.bz2 scummvm-rg350-3edc151c5bde78eaa810a7ddc6092e9c920fb9c6.zip |
Changed MadsView into a separate class, since it's functionality is needed by two different class hierarchies that can't share a common ancestor class
svn-id: r48763
Diffstat (limited to 'engines/m4/mads_views.h')
-rw-r--r-- | engines/m4/mads_views.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/m4/mads_views.h b/engines/m4/mads_views.h index bb151d7078..f1c23dc27b 100644 --- a/engines/m4/mads_views.h +++ b/engines/m4/mads_views.h @@ -154,16 +154,17 @@ public: -class MadsView: public View { +class MadsView { +private: + View *_view; public: MadsSpriteSlots _spriteSlots; MadsTextDisplay _textDisplay; ScreenObjects _screenObjects; public: - MadsView(MadsM4Engine *vm, const Common::Rect &viewBounds, bool transparent = false); - MadsView(MadsM4Engine *vm, int x = 0, int y = 0, bool transparent = false); + MadsView(View *view): _view(view) {} - void onRefresh(RectList *rects, M4Surface *destSurface); + void refresh(RectList *rects); }; #define CHEAT_SEQUENCE_MAX 8 |