summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.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/graphic/graphic.h
parentb7cded07732a85204b7e251d51cf4538a58ce374 (diff)
downloadmana-8501e358510dac20b7aa457408e36c48fe387df0.tar.gz
mana-8501e358510dac20b7aa457408e36c48fe387df0.tar.bz2
mana-8501e358510dac20b7aa457408e36c48fe387df0.tar.xz
mana-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/graphic/graphic.h')
-rw-r--r--src/graphic/graphic.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphic/graphic.h b/src/graphic/graphic.h
index 413c9d33..f8f7bb12 100644
--- a/src/graphic/graphic.h
+++ b/src/graphic/graphic.h
@@ -151,6 +151,16 @@ class Graphics : public gcn::SDLGraphics {
*/
void updateScreen();
+ /**
+ * Returns the width of the screen.
+ */
+ int getWidth();
+
+ /**
+ * Returns the height of the screen.
+ */
+ int getHeight();
+
private:
Image *mouseCursor;
};