summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-10-07 14:57:15 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-10-07 14:57:15 +0000
commite4530c6d0cd180ab18469bf8e32fb978229dedde (patch)
tree218175c6d472315e59c988b168a25b7452cc3b00 /src/map.h
parent7b9a9c55d6e73ba9151042e27ad4bc330d11617f (diff)
downloadmana-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.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/map.h b/src/map.h
index 18381d71..961326b8 100644
--- a/src/map.h
+++ b/src/map.h
@@ -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.