22 #ifndef SUPERNOVA_SCREEN_H 23 #define SUPERNOVA_SCREEN_H 25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "common/scummsys.h" 29 #include "supernova/imageid.h" 30 #include "supernova/msn_def.h" 31 #include "supernova/resman.h" 35 class SupernovaEngine;
37 class ResourceManager;
43 const int kScreenWidth = 320;
44 const int kScreenHeight = 200;
45 const int kFontWidth = 5;
46 const int kFontWidth2 = 4;
47 const int kFontHeight = 8;
63 kColorLightGreen = 13,
64 kColorLightYellow = 14,
67 kColorCursorTransparent = kColorWhite25
88 void push(
int x,
int y,
int width,
int height);
106 bool renderCharacter();
113 const char *
const _textBegin;
134 static void initPalette();
135 static int textWidth(
const uint16 key);
136 static int textWidth(
const char *text);
142 int getScreenWidth()
const;
143 int getScreenHeight()
const;
144 int getViewportBrightness()
const;
145 void setViewportBrightness(
int brightness);
146 int getGuiBrightness()
const;
147 void setGuiBrightness(
int brightness);
149 const ImageInfo *getImageInfo(ImageId
id)
const;
150 bool isMessageShown()
const;
151 void paletteFadeIn(
int maxViewportBrightness);
152 void paletteFadeOut(
int minBrightness);
153 void paletteBrightness();
154 void renderImage(ImageId
id,
bool removeImage =
false);
155 void renderImage(
int section);
156 bool setCurrentImage(
int filenumber);
157 void saveScreen(
int x,
int y,
int width,
int height);
158 void saveScreen(
const GuiElement &guiElement);
159 void restoreScreen();
160 void renderRoom(
Room &room);
161 void renderMessage(
const char *text, MessagePosition position = kMessageNormal,
int positionX = -1,
int positionY = -1);
162 void renderMessage(
const Common::String &text, MessagePosition position = kMessageNormal);
163 void renderMessage(
int stringId, MessagePosition position = kMessageNormal,
165 void removeMessage();
166 void renderText(
const uint16 character);
167 void renderText(
const char *text);
169 void renderText(
int stringId);
170 void renderText(
const uint16 character,
int x,
int y, byte color);
171 void renderText(
const char *text,
int x,
int y, byte color);
172 void renderText(
const Common::String &text,
int x,
int y, byte color);
173 void renderText(
int stringId,
int x,
int y, byte color);
174 void renderText(
const GuiElement &guiElement);
175 void renderBox(
int x,
int y,
int width,
int height, byte color);
177 void setColor63(byte value);
179 void setTextCursorPos(
int x,
int y);
180 byte getTextCursorColor();
181 void setTextCursorColor(byte color);
183 void changeCursor(ResourceManager::CursorId);
186 void renderImageSection(
const MSNImage *image,
int section,
bool invert);
198 byte _viewportBrightness;
Definition: supernova.h:61
Definition: game-manager.h:63
Definition: atari-screen.h:60
Definition: graphics.h:40