22#ifndef KYRA_GUI_AUTOMAP_EOB_H
23#define KYRA_GUI_AUTOMAP_EOB_H
25#if defined(ENABLE_EOB) || defined(ENABLE_LOL)
27#include "common/array.h"
28#include "common/scummsys.h"
32class SeekableReadStreamEndianWrapper;
44struct LevelBlockProperty;
49 Automap_EoB(
OSystem *system, LevelBlockProperty **blockData,
const uint8 *wllFlags,
const uint8 *specialWallTypes,
const int8 *wllShapeMap,
int gameID,
int lang,
bool featureEnabled);
52 void markVisited(uint16 block);
53 void markSeen(uint16 block, int8 dir);
55 void draw(
int level, uint16 partyBlock, int8 partyDirection);
56 void drawPartyIcon(uint16 partyBlock, int8 partyDirection);
60 struct AutomapLayout {
64 int mapX, mapY, mapW, mapH;
65 int sideX, sideY, sideW, sideH;
66 int plX, plY, plW, plH;
71 kNumLegendStrings = 15,
72 kNumControlStrings = 6
75 struct TranslateableStrings {
76 const char *
const legendStrings[kNumLegendStrings];
77 const char *
const controlStrings[kNumControlStrings];
78 const char *
const levelNames[2][16];
79 const char *
const specialMarkerStrings[2][3];
82 struct SpecialMarkers {
99 kIconIllusionWall = 10,
100 kIconWallOfForce = 12,
102 kIconDoorButton = 17,
103 kIconSmallObject = 18,
114 AutomapLayout createLayout(
int width,
int height)
const;
115 void recalcScaling(
int width,
int height);
116 void createColorTable();
117 void createIcons(
bool lowResSurface);
119 void drawBackground(
int width,
int height);
120 void drawLegend(
int level, uint flags);
122 enum IconAlignment :
int {
131 template<
typename T>
void drawIconImpl(
Graphics::Surface &surf,
int iconSet,
int iconID,
int cellX,
int cellY,
int boxFitWidth, IconAlignment alignment,
int extraX,
int extraY,
int overrideColor);
132 typedef void (Automap_EoB::*DrawIconFunc)(
Graphics::Surface &surf,
int iconSet,
int iconID,
int cellX,
int cellY,
int boxFitWidth, IconAlignment alignment,
int extraX,
int extraY,
int overrideColor);
133 DrawIconFunc _drawIcon;
136 uint16 calcNewBlockPosition(uint16 block, int8 dir)
const;
137 bool isVisited(uint16 block)
const;
138 bool isSeen(uint16 block)
const;
140 enum BreakableObjectType {
141 kNoBreakableObject = 0,
142 kBreakableBlockObject,
148 int checkForBreakableObjectType(uint16 block)
const;
149 bool isCenteredSwitch(uint16 block)
const;
153 LevelBlockProperty *&_blockData;
154 const uint8 *
const _wllWallFlags;
155 const uint8 *
const _specialWallTypes;
156 const int8 *
const _wllShapeMap;
158 const uint8 _wallOfForceID;
159 const uint8 *_portalParams;
160 int _portalParamsLen;
163 struct SpecialWallType {
168 const SpecialWallType *_specialBlockIDs;
169 int _numSpecialBlockIDs;
171 static const TranslateableStrings _stringTable[];
172 const char *
const *_legendStrings;
173 const char *
const *_controlStrings;
174 const char *
const *_levelNames;
175 const int _numLevelNames;
177 static const SpecialMarkers _specialMarkersEOB1[];
178 static const SpecialMarkers _specialMarkersEOB2[];
179 const SpecialMarkers *_specialMarkers;
180 const char *
const *_specialMarkerStrings;
181 int _numSpecialMarkers;
254 int _partyIconColorStep;
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: detection.h:27