aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/graphics.h')
-rw-r--r--engines/avalanche/graphics.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/engines/avalanche/graphics.h b/engines/avalanche/graphics.h
index 137d3e4ade..3df59727a5 100644
--- a/engines/avalanche/graphics.h
+++ b/engines/avalanche/graphics.h
@@ -56,12 +56,6 @@ public:
class Graphics {
public:
- static const int16 kScreenWidth = 640;
- static const int16 kScreenHeight = 200;
- static const uint16 kBackgroundWidth = kScreenWidth;
- static const byte kBackgroundHeight = 8 * 12080 / kScreenWidth; // With 640 width it's 151.
- // The 8 = number of bits in a byte, and 12080 comes from Lucerna::load().
-
::Graphics::Surface _surface;
::Graphics::Surface _background;
::Graphics::Surface _magics; // Lucerna::draw_also_lines() draws the "magical" lines here. Further information: https://github.com/urukgit/avalot/wiki/Also
@@ -85,20 +79,30 @@ public:
void drawText(::Graphics::Surface &surface, const Common::String &text, FontType font, byte fontHeight, int16 x, int16 y, Color color);
void drawDigit(int index, int x, int y);
void drawDirection(int index, int x, int y);
+ void drawAlsoLines();
// The caller has to .free() the returned Surfaces!!!
// Further information about these two: http://www.shikadi.net/moddingwiki/Raw_EGA_data
- ::Graphics::Surface loadPictureGraphic(Common::File &file); // Reads Graphic-planar EGA data.
::Graphics::Surface loadPictureRow(Common::File &file, uint16 width, uint16 height); // Reads Row-planar EGA data.
void drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16 y);
void drawPicture(::Graphics::Surface &target, const ::Graphics::Surface &picture, uint16 destX, uint16 destY); // Can't call .free() here. See showScore() for example.
+
+ void drawThinkPic(Common::String filename, int id);
+ void drawToolbar();
+
void refreshScreen();
void loadBackground(Common::File &file);
void refreshBackground();
+ void setBackgroundColor(Color x);
+
void zoomOut(int16 x, int16 y); // Only used when entering the map.
private:
+ static const uint16 kBackgroundWidth = kScreenWidth;
+ static const byte kBackgroundHeight = 8 * 12080 / kScreenWidth; // With 640 width it's 151.
+ // The 8 = number of bits in a byte, and 12080 comes from Lucerna::load().
+
static const byte kEgaPaletteIndex[16];
::Graphics::Surface _digits[10]; // digitsize and rwlitesize are defined in loadDigits() !!!
::Graphics::Surface _directions[9]; // Maybe it will be needed to move them to the class itself instead.
@@ -107,6 +111,7 @@ private:
AvalancheEngine *_vm;
+ ::Graphics::Surface loadPictureGraphic(Common::File &file); // Reads Graphic-planar EGA data.
};
} // End of namespace Avalanche