27 #ifndef AVALANCHE_GRAPHICS_H 28 #define AVALANCHE_GRAPHICS_H 30 #include "avalanche/enums.h" 32 #include "common/file.h" 33 #include "common/rect.h" 34 #include "graphics/surface.h" 37 class AvalancheEngine;
42 typedef byte FontType[256][16];
43 typedef byte ManiType[2049];
44 typedef byte SilType[51][11];
47 int16 _horizontal, _vertical;
53 Color _talkBackgroundColor, _talkFontColor;
59 void loadMouse(byte which);
62 void drawFilledRectangle(
Common::Rect rect, Color color);
63 void blackOutScreen();
64 void drawDot(
int x,
int y, Color color);
65 void drawLine(
int x1,
int y1,
int x2,
int y2,
int penX,
int penY, Color color);
66 Common::Point drawScreenArc(int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, Color color);
67 void drawPieSlice(int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, Color color);
69 void drawNormalText(
const Common::String &text, FontType font, byte fontHeight, int16 x, int16 y, Color color);
70 void drawScrollText(
const Common::String &text, FontType font, byte fontHeight, int16 x, int16 y, Color color);
71 void drawDigit(
int index,
int x,
int y);
72 void drawDirection(
int index,
int x,
int y);
73 void drawScrollShadow(int16 x1, int16 y1, int16 x2, int16 y2);
74 void drawShadowBox(int16 x1, int16 y1, int16 x2, int16 y2,
Common::String text);
75 void drawScroll(
int mx,
int lx,
int my,
int ly);
76 void drawMenuBar(Color color);
77 void drawSpeedBar(
int speed);
78 void drawBackgroundSprite(int16 x, int16 y,
SpriteType &sprite);
79 void drawMenuBlock(
int x1,
int y1,
int x2,
int y2, Color color);
80 void drawMenuItem(
int x1,
int y1,
int x2,
int y2);
81 void wipeChar(
int x,
int y, Color color);
82 void drawChar(byte ander,
int x,
int y, Color color);
83 void drawDebugLines();
87 void nimDrawStone(
int x,
int y);
88 void nimDrawInitials();
96 void drawWinningPic();
103 void drawQuittingPic();
106 void ghostDrawMonster(byte ***picture, uint16 destX, int16 destY, MonsterType type);
108 void ghostDrawPicture(
const Graphics::Surface &picture, uint16 destX, uint16 destY);
112 void helpDrawButton(
int y, byte which);
113 void helpDrawHighlight(byte which, Color color);
114 void helpDrawBigText(
const Common::String &text, int16 x, int16 y, Color color);
120 void seuDrawPicture(
int x,
int y, byte which);
121 void seuDrawCameo(
int destX,
int destY, byte w1, byte w2);
122 uint16 seuGetPicWidth(
int which);
123 uint16 seuGetPicHeight(
int which);
128 void menuRefreshScreen();
129 void menuInitialize();
131 void menuRestoreScreen();
132 void menuLoadPictures();
133 void menuDrawBigText(FontType font, uint16 x, uint16 y,
Common::String text, Color color);
137 void setAlsoLine(
int x1,
int y1,
int x2,
int y2, Color color);
138 byte getAlsoColor(
int x1,
int y1,
int x2,
int y2);
144 void drawSprite(
AnimationType *sprite, byte picnum, int16 x, int16 y);
145 void drawThinkPic(
const Common::Path &filename,
int id);
147 void drawCursor(byte pos);
148 void drawReadyLight(Color color);
149 void drawSoundLight(
bool state);
150 void drawErrorLight(
bool state);
152 void drawIcon(int16 x, int16 y, byte which);
153 void drawScreenLine(int16 x, int16 y, int16 x2, int16 y2, Color color);
154 void prepareBubble(
int xc,
int xw,
int my,
Common::Point points[3]);
155 void refreshScreen();
157 void refreshBackground();
158 void setBackgroundColor(Color newColor);
159 void setDialogColor(Color bg, Color text);
161 void zoomOut(int16 x, int16 y);
166 void restoreScreen();
172 static const int16 kMouseSize = 134;
173 static const uint16 kBackgroundWidth = kScreenWidth;
174 static const byte kEgaPaletteIndex[16];
175 static const byte kBackgroundHeight = 8 * 12080 / kScreenWidth;
177 static const uint16 kMenuScreenHeight = 350;
197 byte _egaPalette[64][3];
218 #endif // AVALANCHE_GRAPHICS_H
Definition: animation.h:32
Definition: graphics.h:46
Definition: animation.h:42
Definition: avalanche.h:77
Definition: graphics.h:50
Definition: background.h:39