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

#include <tileview.h>

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

Public Member Functions

 TileView (int x, int y, int columns, int rows)
 
 TileView (int x, int y, int columns, int rows, const Common::String &tileset)
 
void reinit ()
 
void drawTile (MapTile &mapTile, bool focus, int x, int y)
 
void drawTile (Std::vector< MapTile > &tiles, bool focus, int x, int y)
 
void drawFocus (int x, int y)
 
void loadTile (MapTile &mapTile)
 
void setTileset (Tileset *tileset)
 
void setDest (Image *dest)
 
- Public Member Functions inherited from Ultima::Ultima4::View
 View (int x, int y, int width, int height)
 
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 Attributes

int _columns
 
int _rows
 
int _tileWidth
 
int _tileHeight
 
Tileset_tileSet
 
Image_animated
 
Image_dest
 
- Protected Attributes inherited from Ultima::Ultima4::View
Common::Rect _bounds
 
Common::Rect _highlightBounds
 
bool _highlighted
 

Additional Inherited Members

- Protected Member Functions inherited from Ultima::Ultima4::View
void drawHighlighted ()
 
- Static Protected Attributes inherited from Ultima::Ultima4::View
static Image_screen
 

Detailed Description

A view of a grid of tiles. Used to draw Maps.

  • use for gem view
  • intialize from a Layout?

Member Function Documentation

◆ reinit()

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

Hook for reinitializing when graphics reloaded.

Reimplemented from Ultima::Ultima4::View.

◆ drawFocus()

void Ultima::Ultima4::TileView::drawFocus ( int  x,
int  y 
)

Draw a focus rectangle around the tile

Member Data Documentation

◆ _animated

Image* Ultima::Ultima4::TileView::_animated
protected

a scratchpad image for drawing animations


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