ScummVM API documentation
Ultima::Ultima3::Gfx::DungeonView Class Reference

#include <dungeon_view.h>

Public Member Functions

void draw (const Data::Dungeon &dungeon, int level, int x, int y, int facing)
 
byte color (int x, int y) const
 

Static Public Member Functions

static void loadPictures ()
 
static void setPicturesEnabled (bool enabled)
 
static bool usesPictures ()
 

Detailed Description

The first person view down the corridors of a dungeon: the walls, doors, ladders and chests in sight drawn as lines, which are all white in the original and have colors in the upgrade's EGA and VGA renderers. The VGA renderer can instead use pictures of them, which are layers of the view that are drawn over each other

Member Function Documentation

◆ loadPictures()

static void Ultima::Ultima3::Gfx::DungeonView::loadPictures ( )
static

Reads the pictures that are drawn in place of lines, which any of can be missing

◆ setPicturesEnabled()

static void Ultima::Ultima3::Gfx::DungeonView::setPicturesEnabled ( bool  enabled)
inlinestatic

Sets whether the pictures are drawn, if they've been found and it's the VGA renderer

◆ usesPictures()

static bool Ultima::Ultima3::Gfx::DungeonView::usesPictures ( )
static

Returns true if the view is made of pictures

◆ draw()

void Ultima::Ultima3::Gfx::DungeonView::draw ( const Data::Dungeon &  dungeon,
int  level,
int  x,
int  y,
int  facing 
)

Draws the view from a square in a direction, for later reading back

◆ color()

byte Ultima::Ultima3::Gfx::DungeonView::color ( int  x,
int  y 
) const
inline

Returns the color of a pixel of the picture, whose position is that on the screen, which is zero if it's not lit


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