21 bool foggable =
true,
int offset_x = 0,
QRect sprite_array_bounds(const std::vector< drawn_sprite > &sprs)
Calculates the bounding rectangle of the given sprite array.
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.
drawn_sprite & operator=(drawn_sprite &&other)=default
drawn_sprite(const drawn_sprite &other)=default
QPoint offset
offset from tile origin
drawn_sprite & operator=(const drawn_sprite &other)=default
drawn_sprite(drawn_sprite &&other)=default
bool foggable
Set to FALSE for sprites that are never fogged.