25 #include "graphics/managed_surface.h" 34 #define HDB_FONT "normalprop" 42 TileLookup() : filename(
nullptr), tData(
nullptr), skyIndex(0), animIndex(0) {}
55 GfxCache() : status(
false), tileGfx(
nullptr), size(0), loaded(0) { name[0] = 0; }
82 void fillScreen(uint32 color);
84 void setPointerState(
int value);
86 void showPointer(
bool status) {
93 void setFade(
bool fadeIn,
bool black,
int steps);
95 bool isFadeActive() {
return _fadeInfo.active; }
96 bool isFadeStaying() {
return _fadeInfo.stayFaded; }
97 void turnOffFade() { _fadeInfo.active = _fadeInfo.stayFaded =
false; }
99 void turnOffSnow() { _snowInfo.active =
false; }
101 Picture *loadPic(
const char *picName);
102 Tile *loadTile(
const char *tileName);
103 Tile *loadIcon(
const char *tileName);
104 void setPixel(
int x,
int y, uint16 color);
106 Tile *getTile(
int index);
107 void cacheTileSequence(
int index,
int count);
108 int getTileIndex(
const char *name);
109 Picture *getPicture(
const char *name);
111 void emptyGfxCaches();
112 void markTileCacheFreeable();
113 void markGfxCacheFreeable();
116 bool selectGfxType(
const char *name);
117 Tile *getTileGfx(
const char *name, int32 size);
118 Picture *getPicGfx(
const char *name, int32 size);
120 int isSky(
int skyIndex);
121 void setSky(
int skyIndex);
123 void setup3DStarsLeft();
125 void draw3DStarsLeft();
129 int animateTile(
int tileIndex);
133 bool loadFont(
const char *
string);
134 void drawText(
const char *
string);
135 void getDimensions(
const char *
string,
int *pixelsWide,
int *lines);
136 int stringLength(
const char *
string);
137 void centerPrint(
const char *
string);
138 void setTextEdges(
int left,
int right,
int top,
int bottom);
139 void getTextEdges(
int *left,
int *right,
int *top,
int *bottom);
140 void setKernLead(
int kern,
int lead);
141 void getKernLead(
int *kern,
int *lead);
142 void setCursor(
int x,
int y);
143 void getCursor(
int *x,
int *y);
147 double getSin(
int index);
148 double getCos(
int index);
152 void turnOnBonusStars(
int which);
153 void drawBonusStars();
155 void drawDebugInfo(
Tile *_debugLogo,
int fps);
160 uint16 _skyTiles[kMaxSkies];
177 #define MAX_SNOW 50 // how many snowflakes onscreen 178 #define MAX_SNOW_XV 12 184 int xvindex[MAX_SNOW];
190 } _stars3D[kNum3DStars];
195 } _stars3DSlow[kNum3DStars];
198 int _tileSkyStarsLeft;
215 int _cursorX, _cursorY;
217 int _pointerDisplayable;
226 int _eLeft, _eRight, _eTop, _eBottom;
230 Math::SineTable *_sines;
231 Math::CosineTable *_cosines;
241 int draw(
int x,
int y);
242 int drawMasked(
int x,
int y,
int alpha = 0xff);
246 char *getName() {
return _name; }
263 int draw(
int x,
int y);
264 int drawMasked(
int x,
int y,
int alpha = 0xff);
268 char *getName() {
return _name; }
Definition: managed_surface.h:51
Definition: ai-player.h:25
Definition: savefile.h:54