22#ifndef ULTIMA2_GFX_DUNGEON_PICTURES_H
23#define ULTIMA2_GFX_DUNGEON_PICTURES_H
25#include "graphics/palette.h"
26#include "graphics/views/gfx_surface.h"
27#include "ultima/ultima2/data/data.h"
42 FRONT, LEFT, RIGHT, LEFT_OPEN, RIGHT_OPEN, FRONT_DOOR, LEFT_DOOR, RIGHT_DOOR,
43 LADDER_UP, LADDER_DOWN, CHEST, KIND_COUNT
46 static constexpr int DEPTHS = 8;
47 static constexpr int MONSTER_TYPES = 8;
57 int16 _left, _top, _width, _height;
60 bool isPresent()
const {
61 return _pixels !=
nullptr;
65 static Picture _pictures[KIND_COUNT][DEPTHS];
66 static Picture _doorway;
67 static Picture _monsters[MONSTER_TYPES][DEPTHS];
70 static bool _paletteLoaded;
71 static byte _inverse[256];
73 static void freePictures();
74 static bool loadPicture(Picture &picture,
const Common::String &name);
Simple class for handling a palette data.
Definition: palette.h:61
Definition: gfx_surface.h:34
Definition: dungeon_pictures.h:39
static constexpr int PALETTE_BASE
Definition: dungeon_pictures.h:52
static bool draw(Graphics::Views::GfxSurface &s, Kind kind, int depth, int offset)
static void setEnabled(bool enabled)
Definition: dungeon_pictures.h:81
static void loadPalette(Graphics::Palette &palette)
static bool drawDoorway(Graphics::Views::GfxSurface &s, int offset)
static byte invert(byte color)
static bool drawMonster(Graphics::Views::GfxSurface &s, int type, int depth, int offset)