23 const QPoint &activity_offset)
25 m_activity_offset(activity_offset)
29 std::vector<drawn_sprite>
32 const unit *punit)
const
38 if (!ptile || !ptile->
placing) {
43 std::vector<drawn_sprite> sprs;
46 sprs.emplace_back(
tileset(), sprite,
true,
An abstract class for layers that need sprites for unit activities.
QPixmap * activity_sprite(unit_activity id, const extra_type *extra) const
Returns the sprite used to represent a given activity on the map.
layer_infrawork(struct tileset *ts, const QPoint &activity_offset)
Constructor.
std::vector< drawn_sprite > fill_sprite_array(const tile *ptile, const tile_edge *pedge, const tile_corner *pcorner, const unit *punit) const override
Returns the list of sprites drawn by this layer somewhere on the map.
struct tileset * tileset() const
struct extra_type * placing
QPoint tileset_full_tile_offset(const struct tileset *t)
Return the x and y offsets of full tiles in the tileset.