diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-10-07 14:57:15 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-10-07 14:57:15 +0000 |
commit | e4530c6d0cd180ab18469bf8e32fb978229dedde (patch) | |
tree | 218175c6d472315e59c988b168a25b7452cc3b00 /src/map.h | |
parent | 7b9a9c55d6e73ba9151042e27ad4bc330d11617f (diff) | |
download | mana-e4530c6d0cd180ab18469bf8e32fb978229dedde.tar.gz mana-e4530c6d0cd180ab18469bf8e32fb978229dedde.tar.bz2 mana-e4530c6d0cd180ab18469bf8e32fb978229dedde.tar.xz mana-e4530c6d0cd180ab18469bf8e32fb978229dedde.zip |
Added support for gzip compressed map layer data. Increased version to 0.0.22.
Cleaned up overlay initialization a bit.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -83,24 +83,22 @@ class Map : public Properties ~Map(); /** - * Draws a map layer to the given graphics output. + * Initialize map overlays. Should be called after all the properties + * are set. */ - void draw(Graphics *graphics, int scrollX, int scrollY, int layer); + void initializeOverlays(); /** - * Sets Overlay Graphic and Scrollspeed + * Draws a map layer to the given graphics output. */ - void setOverlay(Image *image, float speedX, float speedY, float parallax); + void draw(Graphics *graphics, int scrollX, int scrollY, int layer); /** * Draws the overlay graphic to the given graphics output. */ - void drawOverlay(Graphics *graphics, float scrollX, float scrollY, int detail); - - /** - * Sets the size of the map. This will destroy any existing map data. - */ - void setSize(int width, int height); + void + drawOverlay(Graphics *graphics, float scrollX, float scrollY, + int detail); /** * Adds a tileset to this map. |