Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
themba_textures.h
Go to the documentation of this file.
1#ifndef THEMBA_TEXTURES_H
2#define THEMBA_TEXTURES_H
3
4#ifndef LOGIC_ONLY
5
6#include <SFML/Graphics.hpp>
7
10{
11public:
13
14 std::string get_filename(
15 const int item
16 ) const noexcept;
17
18 int get_n_textures() const
19 {
20 return sizeof(*this)
21 / sizeof(m_textures.at(1))
22 ;
23 }
24
27 sf::Texture& get_texture(
28 const int index
29 );
30
31private:
32
33 std::map<int, sf::Texture> m_textures;
34};
35
36#endif // LOGIC_ONLY
37
38#endif // TEXTURES_H
Themba Textures.
Definition themba_textures.h:10
themba_textures()
Definition themba_textures.cpp:8
std::string get_filename(const int item) const noexcept
Definition themba_textures.cpp:24
sf::Texture & get_texture(const int index)
Get an icon that accompanies a game option, to be used in the Options screen.
Definition themba_textures.cpp:33
int get_n_textures() const
Definition themba_textures.h:18