ScummVM API documentation
Ultima::Ultima4::View Class Reference

#include <view.h>

Inheritance diagram for Ultima::Ultima4::View:
Ultima::Ultima4::ImageView Ultima::Ultima4::TextView Ultima::Ultima4::TileView Ultima::Ultima4::DungeonView

Public Member Functions

 View (int x, int y, int width, int height)
 
virtual void reinit ()
 
virtual void clear ()
 
virtual void update ()
 
virtual void update (int x, int y, int width, int height)
 
virtual void highlight (int x, int y, int width, int height)
 
virtual void unhighlight ()
 

Protected Member Functions

void drawHighlighted ()
 

Protected Attributes

Common::Rect _bounds
 
Common::Rect _highlightBounds
 
bool _highlighted
 

Static Protected Attributes

static Image_screen
 

Detailed Description

Generic base class for reflecting the state of a game object onto the screen.

Member Function Documentation

◆ reinit()

virtual void Ultima::Ultima4::View::reinit ( )
virtual

Hook for reinitializing when graphics reloaded.

Reimplemented in Ultima::Ultima4::TextView, and Ultima::Ultima4::TileView.

◆ clear()

virtual void Ultima::Ultima4::View::clear ( )
virtual

Clear the view to black.

◆ update() [1/2]

virtual void Ultima::Ultima4::View::update ( )
virtual

Update the view to the screen.

◆ update() [2/2]

virtual void Ultima::Ultima4::View::update ( int  x,
int  y,
int  width,
int  height 
)
virtual

Update a piece of the view to the screen.

◆ highlight()

virtual void Ultima::Ultima4::View::highlight ( int  x,
int  y,
int  width,
int  height 
)
virtual

Highlight a piece of the screen by drawing it in inverted colors.


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