28 extrastyle_id style)
override;
30 std::vector<drawn_sprite>
33 const unit *punit)
const override;
39 std::vector<drawn_sprite> &sprs,
41 bv_extras *textras_near,
43 const city *pcity)
const;
virtual ~layer_water()=default
std::vector< extra_data > m_cardinals
void reset_ruleset() override
Resets cached data that depends on the ruleset.
layer_water(struct tileset *ts)
void initialize_extra(const extra_type *extra, const QString &tag, extrastyle_id style) override
Collects all extras to be drawn (the ones with ESTYLE_CARDINALS or ESTYLE_RIVER).
void fill_irrigation_sprite_array(const struct tileset *t, std::vector< drawn_sprite > &sprs, bv_extras textras, bv_extras *textras_near, const terrain *pterrain, const city *pcity) const
Fill in the farmland/irrigation sprite for the tile.
std::vector< extra_data > m_outlets
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.
std::vector< extra_data > m_rivers
A layer when drawing the map.