summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-02-09 02:07:14 +0100
committerBertram <bertram@cegetel.net>2010-02-09 02:07:14 +0100
commitaa0325fac0f16ced4ac710b5126da5bc5c2af441 (patch)
treed00a3f3c3d3cf09ea76886938bb47a3bee57f110 /src/map.h
parent56f501c8148b1061a02547d37b20eeeeb64029db (diff)
downloadMana-aa0325fac0f16ced4ac710b5126da5bc5c2af441.tar.gz
Mana-aa0325fac0f16ced4ac710b5126da5bc5c2af441.tar.bz2
Mana-aa0325fac0f16ced4ac710b5126da5bc5c2af441.tar.xz
Mana-aa0325fac0f16ced4ac710b5126da5bc5c2af441.zip
Separated fallback defaults for tile width and height.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map.h b/src/map.h
index f5f74995..d33f31db 100644
--- a/src/map.h
+++ b/src/map.h
@@ -43,7 +43,9 @@ typedef std::list<Sprite*> MapSprites;
typedef MapSprites::iterator MapSprite;
typedef std::vector<MapLayer*> Layers;
-extern const int DEFAULT_TILE_SIDE_LENGTH;
+/** Default fallback values for tiles width and height */
+extern const int DEFAULT_TILE_WIDTH; /**< Used for X coords */
+extern const int DEFAULT_TILE_HEIGHT; /**< Used for Y coords */
/**
* A meta tile stores additional information about a location on a tile map.
@@ -257,13 +259,13 @@ class Map : public Properties
* Returns the tile width of this map.
*/
int getTileWidth() const
- { return mTileWidth > 0 ? mTileWidth : DEFAULT_TILE_SIDE_LENGTH; }
+ { return mTileWidth > 0 ? mTileWidth : DEFAULT_TILE_WIDTH; }
/**
* Returns the tile height used by this map.
*/
int getTileHeight() const
- { return mTileHeight > 0 ? mTileHeight : DEFAULT_TILE_SIDE_LENGTH; }
+ { return mTileHeight > 0 ? mTileHeight : DEFAULT_TILE_HEIGHT; }
const std::string &getMusicFile() const;
const std::string &getName() const;