16 int get_n_textures() const noexcept {
return sizeof(*this) /
sizeof(m_title); };
28 sf::Texture&
get_title() noexcept {
return m_title; }
47 std::map<chess_color, std::map<chess_color, sf::Texture>> m_semitransparent_occupied_squares;
48 std::map<chess_color, std::map<chess_color, sf::Texture>> m_occupied_squares;
49 std::map<chess_color, sf::Texture> m_squares;
50 std::map<chess_color, sf::Texture> m_semitransparent_squares;
51 std::map<chess_color, sf::Texture> m_strips;
53 sf::Texture m_subtitle;
56 std::string get_occupied_square_filename(
61 std::string get_occupied_square_semitransparent_filename(
66 std::string get_square_filename(
70 std::string get_square_semitransparent_filename(
74 std::string get_strip_filename(
sf::Texture & get_subtitle() noexcept
Get the subtitle image.
Definition textures.h:25
sf::Texture & get_strip(const chess_color color) noexcept
Get a strip of chess board squares.
Definition textures.cpp:189
sf::Texture & get_square(const chess_color color) noexcept
Get a chess board square.
Definition textures.cpp:155
sf::Texture & get_title() noexcept
Get the title image.
Definition textures.h:28
int get_n_textures() const noexcept
Definition textures.h:16
sf::Texture & get_semitransparent_square(const chess_color color) noexcept
Get a semitransparent chess board square.
Definition textures.cpp:148
sf::Texture & get_occupied_square_semitransparent(const chess_color square_color, const chess_color occupant_color) noexcept
Get an occupied chess board square.
Definition textures.cpp:120
sf::Texture & get_occupied_square(const chess_color square_color, const chess_color occupant_color) noexcept
Get an occupied chess board square.
Definition textures.cpp:112
textures()
Definition textures.cpp:11