Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
board_game_textures.h
Go to the documentation of this file.
1#ifndef BOARD_GAME_TEXTURES_H
2#define BOARD_GAME_TEXTURES_H
3
4#ifndef LOGIC_ONLY
5
7#include "chess_color.h"
8
9#include <SFML/Graphics.hpp>
10
13{
14public:
16
18 sf::Texture& get_symbol(const game_statistic_type s);
19
21 sf::Color get_outline_color(const game_statistic_type s);
22
24 sf::Color get_symbol_color(const game_statistic_type s);
25
27 sf::Color get_bar_color(const game_statistic_type s, const chess_color c);
28
29 int get_n_textures() const noexcept
30 {
31 return sizeof(*this)
32 / sizeof(m_dice_shield)
33 ;
34 }
35
36 sf::Texture& get_dice_shield() { return m_dice_shield; }
37 sf::Texture& get_dice_skull() { return m_dice_skull; }
38 sf::Texture& get_dice_sword() { return m_dice_sword; }
39 sf::Texture& get_dollar() { return m_dollar; }
40 sf::Texture& get_flag_triangle() { return m_flag_triangle; }
41 sf::Texture& get_flag_square() { return m_flag_square; }
42 sf::Texture& get_hourglass() { return m_hourglass; }
43 sf::Texture& get_pawn_up() { return m_pawn_up; }
44 sf::Texture& get_shield() { return m_shield; }
45 sf::Texture& get_skull() { return m_skull; }
46 sf::Texture& get_sword() { return m_sword; }
47
48private:
49
50 sf::Texture m_dice_shield;
51 sf::Texture m_dice_skull;
52 sf::Texture m_dice_sword;
53 sf::Texture m_dollar;
54 sf::Texture m_flag_square;
55 sf::Texture m_flag_triangle;
56 sf::Texture m_hourglass;
57 sf::Texture m_pawn_up;
58 sf::Texture m_shield;
59 sf::Texture m_skull;
60 sf::Texture m_sword;
61};
62
63#endif // LOGIC_ONLY
64
65#endif // TEXTURES_H
chess_color
A chess piece color.
Definition chess_color.h:10
The textures for the game maps.
Definition board_game_textures.h:13
sf::Texture & get_dice_sword()
Definition board_game_textures.h:38
sf::Color get_bar_color(const game_statistic_type s, const chess_color c)
Get the color for the bar of the statistic.
Definition board_game_textures.cpp:72
sf::Texture & get_sword()
Definition board_game_textures.h:46
sf::Texture & get_dice_shield()
Definition board_game_textures.h:36
sf::Texture & get_flag_triangle()
Definition board_game_textures.h:40
sf::Texture & get_shield()
Definition board_game_textures.h:44
sf::Color get_symbol_color(const game_statistic_type s)
Get the color for the symbol.
Definition board_game_textures.cpp:58
sf::Texture & get_symbol(const game_statistic_type s)
Get the texture for the symbol.
Definition board_game_textures.cpp:43
sf::Texture & get_dice_skull()
Definition board_game_textures.h:37
sf::Texture & get_hourglass()
Definition board_game_textures.h:42
board_game_textures()
Definition board_game_textures.cpp:8
int get_n_textures() const noexcept
Definition board_game_textures.h:29
sf::Color get_outline_color(const game_statistic_type s)
Get the color for the outline of the bars.
Definition board_game_textures.cpp:37
sf::Texture & get_dollar()
Definition board_game_textures.h:39
sf::Texture & get_skull()
Definition board_game_textures.h:45
sf::Texture & get_pawn_up()
Definition board_game_textures.h:43
sf::Texture & get_flag_square()
Definition board_game_textures.h:41
game_statistic_type
Definition game_statistic_type.h:9