30 std::vector<drawn_sprite>
33 const unit *punit)
const override;
virtual ~layer_background()=default
layer_background(struct tileset *ts)
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.
void free_player(int player_id) override
Frees data initialized by initialize_player.
std::unique_ptr< QPixmap > create_player_sprite(const QColor &pcolor) const
Create a sprite with the given color.
std::array< std::unique_ptr< QPixmap >, MAX_NUM_PLAYER_SLOTS > m_player_background
void initialize_player(const player *player) override
Initializes data specific to one player.
A layer when drawing the map.
#define MAX_NUM_PLAYER_SLOTS