summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-02 00:15:20 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-02 00:15:20 +0000
commit8501e358510dac20b7aa457408e36c48fe387df0 (patch)
tree46d9baeae1ed466d79b1b0b33151dac8c9ba1157 /src/map.h
parentb7cded07732a85204b7e251d51cf4538a58ce374 (diff)
downloadmana-client-8501e358510dac20b7aa457408e36c48fe387df0.tar.gz
mana-client-8501e358510dac20b7aa457408e36c48fe387df0.tar.bz2
mana-client-8501e358510dac20b7aa457408e36c48fe387df0.tar.xz
mana-client-8501e358510dac20b7aa457408e36c48fe387df0.zip
Moved map drawing loop into the Map class and made it safer (it doesn't try to
draw tiles outside of the map area). The tmw.ini file was removed, we're using config.xml now.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 2f03dcbe..056de6e1 100644
--- a/src/map.h
+++ b/src/map.h
@@ -25,6 +25,7 @@
#define _TMW_MAP_H
#include "being.h"
+#include "graphic/graphic.h"
#include "resources/image.h"
/**
@@ -97,6 +98,11 @@ class Map
static Map *load(const std::string &mapFile);
/**
+ * Draws the map to the given graphics output.
+ */
+ void draw(Graphics *graphics, int scrollX, int scrollY, int layer);
+
+ /**
* Sets the size of the map. This will destroy any existing map data.
*/
void setSize(int width, int height);