151 const auto normalized = rect.normalized();
152 if (!normalized.isValid()) {
206 if (
m_xi % 2 == 0 &&
m_yi % 2 == 0) {
gui_rect_iterator(const struct tileset *t, const QRect &rect)
Constructor.
bool next()
Iterates to the next item.
#define log_debug(message,...)
struct tile * map_pos_to_tile(const struct civ_map *nmap, int map_x, int map_y)
Return the tile for the given cartesian (map) position.
const struct tile * tile[NUM_CORNER_TILES]
const struct tile * tile[NUM_EDGE_TILES]
int tileset_hex_width(const struct tileset *t)
Return the hex_width of the current tileset.
bool tileset_is_isometric(const struct tileset *t)
Return whether the current tileset is isometric.
int tileset_tile_height(const struct tileset *t)
Return the tile height of the current tileset.
int tileset_hex_height(const struct tileset *t)
Return the hex_height of the current tileset.
int tileset_tile_width(const struct tileset *t)
Return the tile width of the current tileset.