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();
99 void ghostDrawMonster(byte ***picture, uint16 destX, int16 destY, MonsterType type);
101 void ghostDrawPicture(
const Graphics::Surface &picture, uint16 destX, uint16 destY);
105 void helpDrawButton(
int y, byte which);
106 void helpDrawHighlight(byte which, Color color);
107 void helpDrawBigText(
const Common::String text, int16 x, int16 y, Color color);
113 void seuDrawPicture(
int x,
int y, byte which);
114 void seuDrawCameo(
int destX,
int destY, byte w1, byte w2);
115 uint16 seuGetPicWidth(
int which);
116 uint16 seuGetPicHeight(
int which);
121 void menuRefreshScreen();
122 void menuInitialize();
124 void menuRestoreScreen();
125 void menuLoadPictures();
126 void menuDrawBigText(FontType font, uint16 x, uint16 y,
Common::String text, Color color);
127 void menuDrawIndicator(
int x);
131 void setAlsoLine(
int x1,
int y1,
int x2,
int y2, Color color);
132 byte getAlsoColor(
int x1,
int y1,
int x2,
int y2);
138 void drawSprite(
AnimationType *sprite, byte picnum, int16 x, int16 y);
139 void drawThinkPic(
const Common::Path &filename,
int id);
141 void drawCursor(byte pos);
142 void drawReadyLight(Color color);
143 void drawSoundLight(
bool state);
144 void drawErrorLight(
bool state);
146 void drawIcon(int16 x, int16 y, byte which);
147 void drawScreenLine(int16 x, int16 y, int16 x2, int16 y2, Color color);
148 void prepareBubble(
int xc,
int xw,
int my,
Common::Point points[3]);
149 void refreshScreen();
151 void refreshBackground();
152 void setBackgroundColor(Color newColor);
153 void setDialogColor(Color bg, Color text);
155 void zoomOut(int16 x, int16 y);
160 void restoreScreen();
164 static const int16 kMouseSize = 134;
165 static const uint16 kBackgroundWidth = kScreenWidth;
166 static const byte kEgaPaletteIndex[16];
167 static const byte kBackgroundHeight = 8 * 12080 / kScreenWidth;
169 static const uint16 kMenuScreenHeight = 350;
189 byte _egaPalette[64][3];
210 #endif // AVALANCHE_GRAPHICS_H
Definition: animation.h:32
Definition: graphics.h:46
Definition: animation.h:42
Definition: avalanche.h:74
Definition: graphics.h:50
Definition: background.h:39