Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Classes | Functions
game_resources.h File Reference
#include "artwork_textures.h"
#include "board_game_textures.h"
#include "chess_color.h"
#include "fonts.h"
#include "lobby_menu_textures.h"
#include "options_menu_textures.h"
#include "loading_screen_fonts.h"
#include "loading_screen_songs.h"
#include "loading_screen_textures.h"
#include "map_textures.h"
#include "message.h"
#include "physical_controller_textures.h"
#include "piece_portrait_textures.h"
#include "piece_action_textures.h"
#include "piece_textures.h"
#include "piece_type.h"
#include "piece_action_type.h"
#include "songs.h"
#include "sound_effects.h"
#include "textures.h"
#include "themba_textures.h"
#include "input_prompt_textures.h"
#include <optional>
Include dependency graph for game_resources.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  game_resources
 

Functions

sf::Texture & get_about_texture () noexcept
 
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_options_texture (game_resources &r) noexcept
 
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_quit_texture (game_resources &r) noexcept
 
sf::Texture & get_map_texture (const race r) noexcept
 Get the map for a race.
 
sf::Texture & get_start_texture () noexcept
 
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_about_texture()

sf::Texture & get_about_texture ( )
noexcept

◆ 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_options_texture()

sf::Texture & get_options_texture ( game_resources r)
noexcept

◆ 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_quit_texture()

sf::Texture & get_quit_texture ( game_resources r)
noexcept

◆ get_start_texture()

sf::Texture & get_start_texture ( )
noexcept

◆ 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.