equal
deleted
inserted
replaced
182 |
182 |
183 static inline TileIndex TileVirtXY(uint x, uint y) |
183 static inline TileIndex TileVirtXY(uint x, uint y) |
184 { |
184 { |
185 return (y >> 4 << MapLogX()) + (x >> 4); |
185 return (y >> 4 << MapLogX()) + (x >> 4); |
186 } |
186 } |
187 |
|
188 |
|
189 enum { |
|
190 INVALID_TILE = (TileIndex)-1 ///< The very nice invalid tile marker |
|
191 }; |
|
192 |
|
193 enum { |
|
194 TILE_SIZE = 16, ///< Tiles are 16x16 "units" in size |
|
195 TILE_PIXELS = 32, ///< a tile is 32x32 pixels |
|
196 TILE_HEIGHT = 8, ///< The standard height-difference between tiles on two levels is 8 (z-diff 8) |
|
197 }; |
|
198 |
187 |
199 |
188 |
200 /** |
189 /** |
201 * Get the X component of a tile |
190 * Get the X component of a tile |
202 * @param tile the tile to get the X component of |
191 * @param tile the tile to get the X component of |