19 bool foggable,
int offset_x,
int offset_y)
21 offset(offset_x, offset_y)
30 bool foggable,
const QPoint &offset)
31 :
drawn_sprite(ts, sprite, foggable, offset.x(), offset.y())
41 for (
const auto &sprite : sprs) {
42 bounds |= QRect(sprite.offset, sprite.sprite->size());
QRect sprite_array_bounds(const std::vector< drawn_sprite > &sprs)
Calculates the bounding rectangle of the given sprite array.
#define fc_assert(condition)
drawn_sprite(const struct tileset *ts, const QPixmap *sprite, bool foggable=true, int offset_x=0, int offset_y=0)
Instantiates a drawn sprite, ensuring that it's never null.
bool tileset_use_hard_coded_fog(const struct tileset *t)
Return TRUE if the client will use the code to generate the fog.