summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-07 02:12:24 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-07 03:17:16 +0300
commit7d151c8fc05cd7feaf1e1cee33fd8289208fa18d (patch)
treecc246201d9aafb94087efbe85cd13b4b18eacaaf /src/map.h
parent95c8a3c0b4d2f0d39c81a6671452e1aa34a626f9 (diff)
downloadmv-7d151c8fc05cd7feaf1e1cee33fd8289208fa18d.tar.gz
mv-7d151c8fc05cd7feaf1e1cee33fd8289208fa18d.tar.bz2
mv-7d151c8fc05cd7feaf1e1cee33fd8289208fa18d.tar.xz
mv-7d151c8fc05cd7feaf1e1cee33fd8289208fa18d.zip
Add map reduce feature for software drawing.
Now invisible tiles will be removed if this mode enabled.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index c8ce7918c..e33a9a35c 100644
--- a/src/map.h
+++ b/src/map.h
@@ -119,6 +119,8 @@ class TileAnimation
class MapLayer: public ConfigListener
{
public:
+ friend class Map;
+
/**
* Constructor, taking layer origin, size and whether this layer is the
* fringe layer. The fringe layer is the layer that draws the actors.
@@ -468,6 +470,8 @@ class Map : public Properties, public ConfigListener
void setVersion(int n)
{ mVersion = n; }
+ void reduce();
+
protected:
friend class Actor;
friend class Minimap;