summaryrefslogtreecommitdiffstats
path: root/pokemod
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod')
-rw-r--r--pokemod/Map.cpp10
-rw-r--r--pokemod/Map.h2
-rw-r--r--pokemod/Tile.cpp1
-rw-r--r--pokemod/Tile.h2
4 files changed, 14 insertions, 1 deletions
diff --git a/pokemod/Map.cpp b/pokemod/Map.cpp
index 958f43f7..13b8ffd2 100644
--- a/pokemod/Map.cpp
+++ b/pokemod/Map.cpp
@@ -407,6 +407,16 @@ void Map::deleteRow(int y)
tiles.deleteRow(y);
}
+const Matrix<int>& Map::getMap() const
+{
+ return tiles;
+}
+
+Matrix<int>& Map::getMap()
+{
+ return tiles;
+}
+
int Map::getTile(int x, int y) const
{
return tiles(x, y);
diff --git a/pokemod/Map.h b/pokemod/Map.h
index 03a3c4e3..716a44d2 100644
--- a/pokemod/Map.h
+++ b/pokemod/Map.h
@@ -71,6 +71,8 @@ class Map : public Object
void deleteColumn(int x);
void deleteRow(int y);
+ const Matrix<int>& getMap() const;
+ Matrix<int>& getMap();
int getTile(int x, int y) const;
int getWidth() const;
int getHeight() const;
diff --git a/pokemod/Tile.cpp b/pokemod/Tile.cpp
index 428e9ad3..8c0535d1 100644
--- a/pokemod/Tile.cpp
+++ b/pokemod/Tile.cpp
@@ -20,7 +20,6 @@
// with this program. If not, see <http://www.gnu.org/licenses/>.
/////////////////////////////////////////////////////////////////////////////
-#include "../general/Ref.h"
#include "Pokemod.h"
#include "Tile.h"
diff --git a/pokemod/Tile.h b/pokemod/Tile.h
index 4a2866b6..241f8d27 100644
--- a/pokemod/Tile.h
+++ b/pokemod/Tile.h
@@ -26,6 +26,8 @@
#include <QString>
#include <QStringList>
#include "../general/Exception.h"
+#include "../general/Frac.h"
+#include "../general/Ref.h"
#include "Object.h"
class Pokemod;