Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Functions
game_resources.cpp File Reference
#include "game_resources.h"
#include <QFile>
#include <cassert>
#include <optional>
Include dependency graph for game_resources.cpp:

Functions

sf::Texture & get_action_icon (piece_action_type t) noexcept
 
sf::Font & get_arial_font () noexcept
 Get the Arial font.
 
sf::Font & get_code_squared_font () noexcept
 Get the Code Squared font.
 
sf::Texture & get_game_option_icon (const options_view_item item) noexcept
 Get an icon that accompanies a game option, to be used in the Options screen.
 
sf::Texture & get_map_texture (const race r) noexcept
 Get the map for a race.
 
sf::Texture & get_piece_texture (const race r, const chess_color color, const piece_type type)
 Get texture of a piece.
 
sf::Texture & get_piece_portrait_texture (const race r, const chess_color color, const piece_type type)
 Get texture of a portrait of a piece.
 
sf::Texture & get_strip_texture (const chess_color c) noexcept
 
sf::Texture & get_subtitle_texture () noexcept
 
sf::Texture & get_title_texture () noexcept
 
void play_sound_effect (const message &effect)
 Play a sound effect.
 

Function Documentation

◆ get_action_icon()

sf::Texture & get_action_icon ( piece_action_type  t)
noexcept

◆ get_arial_font()

sf::Font & get_arial_font ( )
noexcept

Get the Arial font.

◆ get_code_squared_font()

sf::Font & get_code_squared_font ( )
noexcept

Get the Code Squared font.

◆ get_game_option_icon()

sf::Texture & get_game_option_icon ( const options_view_item  item)
noexcept

Get an icon that accompanies a game option, to be used in the Options screen.

◆ get_map_texture()

sf::Texture & get_map_texture ( const race  r)
noexcept

Get the map for a race.

◆ get_piece_portrait_texture()

sf::Texture & get_piece_portrait_texture ( const race  r,
const chess_color  color,
const piece_type  type 
)

Get texture of a portrait of a piece.

◆ get_piece_texture()

sf::Texture & get_piece_texture ( const race  r,
const chess_color  color,
const piece_type  type 
)

Get texture of a piece.

◆ get_strip_texture()

sf::Texture & get_strip_texture ( const chess_color  c)
noexcept

◆ get_subtitle_texture()

sf::Texture & get_subtitle_texture ( )
noexcept

◆ get_title_texture()

sf::Texture & get_title_texture ( )
noexcept

◆ play_sound_effect()

void play_sound_effect ( const message effect)

Play a sound effect.