22#ifndef ULTIMA3_GFX_DUNGEON_VIEW_H
23#define ULTIMA3_GFX_DUNGEON_VIEW_H
25#include "common/array.h"
26#include "ultima/ultima3/data/dungeon.h"
43 static const int WIDTH = 256;
44 static const int HEIGHT = 200;
45 static const int OFFSET = 0x20;
48 static const int PICTURE_SIZE = 0x80;
49 static const int FACES = 64;
50 static const int PLACES = 21;
54 byte _pixels[PICTURE_SIZE * PICTURE_SIZE];
64 static Picture _faces[FACES];
65 static Picture _ladders[PLACES];
66 static Picture _chests[PLACES];
70 byte _pixels[WIDTH * HEIGHT];
73 bool _usePictures =
false;
75 static bool loadPicture(Picture &picture,
const Common::String &name);
81 static void resetPictures();
83 void drawPicture(
const Picture &picture,
bool flip,
bool erase);
88 void drawPlaces(
const Data::Dungeon &dungeon,
int level,
int x,
int y);
96 void plot(
int x,
int y);
97 void line(
int x0,
int y0,
int x1,
int y1);
98 void column(
int x,
int top,
int bottom,
bool erase,
byte color);
99 void drawWall(
int face);
100 void drawLadder(
bool down,
int place);
101 void drawChest(
int place);
106 Sight look(
const Data::Dungeon &dungeon,
int level,
int x,
int y,
int place);
112 void lookAlong(
const Data::Dungeon &dungeon,
int level,
int x,
int y,
const byte *places,
int count);
116 memset(_pixels, 0,
sizeof(_pixels));
147 return _pixels[y * WIDTH + x];
Definition: dungeon_view.h:39
void draw(const Data::Dungeon &dungeon, int level, int x, int y, int facing)
static void loadPictures()
static bool usesPictures()
static void setPicturesEnabled(bool enabled)
Definition: dungeon_view.h:128
byte color(int x, int y) const
Definition: dungeon_view.h:146