diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-10-06 18:10:45 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-10-06 18:10:45 +0000 |
commit | 3a096bed018254f9d662f9ae85792b8ae5df4837 (patch) | |
tree | b7504fd5a332a220a3ce73d035496d562545f50e /sigmod/Map.cpp | |
parent | 2c0a3866e09140d8d5ff84178decddc22db15778 (diff) | |
download | sigen-3a096bed018254f9d662f9ae85792b8ae5df4837.tar.gz sigen-3a096bed018254f9d662f9ae85792b8ae5df4837.tar.xz sigen-3a096bed018254f9d662f9ae85792b8ae5df4837.zip |
[FIX] Started documenting Sigmod
[FIX] A few minor bugs
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@272 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmod/Map.cpp')
-rw-r--r-- | sigmod/Map.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sigmod/Map.cpp b/sigmod/Map.cpp index fe599cc6..021de6ac 100644 --- a/sigmod/Map.cpp +++ b/sigmod/Map.cpp @@ -169,7 +169,7 @@ void Sigmod::Map::setTile(const int row, const int column, const int tile) if (qobject_cast<const Sigmod*>(sigmod())->tileIndex(tile) == INT_MAX) emit(error(bounds("tile"))); else - m_map.set(row, column, tile); + m_map(row, column) = tile; } void Sigmod::Map::insertColumn(const int column) @@ -214,7 +214,7 @@ Sigmod::Matrix<int>* Sigmod::Map::map() int Sigmod::Map::tile(const int row, const int column) const { - return m_map.at(row, column); + return m_map(row, column); } int Sigmod::Map::width() const @@ -227,11 +227,6 @@ int Sigmod::Map::height() const return m_map.height(); } -QPoint Sigmod::Map::size() const -{ - return m_map.size(); -} - const Sigmod::MapEffect* Sigmod::Map::effect(const int index) const { Q_ASSERT(index < effectCount()); |