diff options
author | Bertram <bertram@cegetel.net> | 2010-02-09 02:07:14 +0100 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-02-09 02:07:14 +0100 |
commit | aa0325fac0f16ced4ac710b5126da5bc5c2af441 (patch) | |
tree | d00a3f3c3d3cf09ea76886938bb47a3bee57f110 /src/map.h | |
parent | 56f501c8148b1061a02547d37b20eeeeb64029db (diff) | |
download | mana-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.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |