ScummVM API documentation
MADS::Dialog Class Reference
Inheritance diagram for MADS::Dialog:
MADS::TextDialog MADS::MessageDialog MADS::Nebular::CopyProtectionDialog MADS::Nebular::PictureDialog

Public Member Functions

 Dialog (MADSEngine *vm)
 
virtual ~Dialog ()
 
Common::Rect getBounds () const
 

Protected Member Functions

virtual void draw ()
 
virtual void calculateBounds ()
 
virtual void save ()
 
virtual void restore ()
 
void drawContent (const Common::Rect &r, int seed, byte color1, byte color2)
 

Protected Attributes

MADSEngine_vm
 
MSurface_savedSurface
 
Common::Point _position
 
int _width
 
int _height
 
byte _dialogPalette [8 *3]
 
int TEXTDIALOG_CONTENT1
 
int TEXTDIALOG_CONTENT2
 
int TEXTDIALOG_EDGE
 
int TEXTDIALOG_BACKGROUND
 
int TEXTDIALOG_FC
 
int TEXTDIALOG_FD
 
int TEXTDIALOG_FE
 
int TEXTDIALOG_BLACK
 

Constructor & Destructor Documentation

◆ Dialog()

MADS::Dialog::Dialog ( MADSEngine vm)

Constructor

◆ ~Dialog()

virtual MADS::Dialog::~Dialog ( )
virtual

Destructor

Member Function Documentation

◆ draw()

virtual void MADS::Dialog::draw ( )
protectedvirtual

Draw the dialog

Reimplemented in MADS::TextDialog.

◆ calculateBounds()

virtual void MADS::Dialog::calculateBounds ( )
protectedvirtual

Calculate bounds for the dialog

Reimplemented in MADS::TextDialog.

◆ save()

virtual void MADS::Dialog::save ( )
protectedvirtual

Save the section of the passed surface the dialog will cover.

Reimplemented in MADS::Nebular::PictureDialog.

◆ restore()

virtual void MADS::Dialog::restore ( )
protectedvirtual

Restore saved dialog surface

Reimplemented in MADS::Nebular::PictureDialog.

◆ drawContent()

void MADS::Dialog::drawContent ( const Common::Rect r,
int  seed,
byte  color1,
byte  color2 
)
protected

Draws the content of a dialog with a gravelly alternating color.

◆ getBounds()

Common::Rect MADS::Dialog::getBounds ( ) const
inline

Return the bounds of the dialog.


The documentation for this class was generated from the following file: