aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/dialogs.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-05-11 18:08:31 -0400
committerPaul Gilbert2014-05-11 18:08:31 -0400
commit8abcbf3fb08fbca6f0cfdb9eabd22cf56e83b440 (patch)
tree9b24d0bd0e59fc81371ded67613a821fb3c2f323 /engines/mads/dialogs.h
parente21534ecc2d39864d2cb3ba67248ad0dadecf72e (diff)
downloadscummvm-rg350-8abcbf3fb08fbca6f0cfdb9eabd22cf56e83b440.tar.gz
scummvm-rg350-8abcbf3fb08fbca6f0cfdb9eabd22cf56e83b440.tar.bz2
scummvm-rg350-8abcbf3fb08fbca6f0cfdb9eabd22cf56e83b440.zip
MADS: Refactoring of dialog classes, more implementation of PictureDialog
Diffstat (limited to 'engines/mads/dialogs.h')
-rw-r--r--engines/mads/dialogs.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/mads/dialogs.h b/engines/mads/dialogs.h
index d06611b1c4..aa635768a1 100644
--- a/engines/mads/dialogs.h
+++ b/engines/mads/dialogs.h
@@ -40,15 +40,13 @@ protected:
/**
* Save the section of the passed surface the dialog will cover.
- * @param s Screen surface to save
*/
- void save(MSurface *s);
+ virtual void save();
/**
* Restore saved dialog surface
- * @param s Screen surface to restore to.
*/
- void restore(MSurface *s);
+ virtual void restore();
/**
* Draws the content of a dialog with a gravelly alternating color.
@@ -59,6 +57,11 @@ protected:
* Draw the dialog
*/
virtual void draw();
+
+ /**
+ * Calculate bounds for the dialog
+ */
+ virtual void calculateBounds();
public:
/**
* Constructor
@@ -115,6 +118,11 @@ protected:
Common::String _lines[TEXT_DIALOG_MAX_LINES];
int _lineXp[TEXT_DIALOG_MAX_LINES];
byte _cyclingPalette[8 * 3];
+
+ /**
+ * Calculate the bounds for the dialog
+ */
+ virtual void calculateBounds();
public:
/**
* Constructor