Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
loading_screen_textures.h
Go to the documentation of this file.
1#ifndef LOADING_SCREEN_TEXTURES_H
2#define LOADING_SCREEN_TEXTURES_H
3
4#ifndef LOGIC_ONLY
5
6#include <SFML/Graphics.hpp>
7
8#include <map>
15{
16public:
18
19 std::string get_filename(
20 const int i
21 ) const noexcept;
22
23 int get_n_textures() const noexcept
24 {
25 return sizeof(*this)
26 / sizeof(m_all_races.at(1))
27 ;
28 }
29
31 sf::Texture& get_all_races(
32 const int i
33 );
34private:
35
36 std::map<int, sf::Texture> m_all_races;
37};
38
39#endif // LOGIC_ONLY
40
41#endif // LOADING_SCREEN_TEXTURES_H
The textures used in the loading screen.
Definition loading_screen_textures.h:15
std::string get_filename(const int i) const noexcept
Definition loading_screen_textures.cpp:52
int get_n_textures() const noexcept
Definition loading_screen_textures.h:23
loading_screen_textures()
Definition loading_screen_textures.cpp:10
std::vector< race > get_all_races() noexcept
Definition race.cpp:10