Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Functions
controls_view.cpp File Reference
#include "controls_view.h"
#include "screen_coordinate.h"
#include "physical_controllers.h"
#include "draw.h"
#include "render_window.h"
#include "action_number.h"
#include "game_resources.h"
#include "sfml_helper.h"
#include <cassert>
#include <cmath>
#include <iostream>
Include dependency graph for controls_view.cpp:

Functions

void draw_panel (const screen_rect &panel_position, const std::string panel_text, const chess_color color, const bool is_active)
 
sf::Keyboard::Key get_key_for_action_1 (const controls_view &v)
 
sf::Keyboard::Key get_key_for_action_2 (const controls_view &v)
 
sf::Keyboard::Key get_key_for_action_3 (const controls_view &v)
 
sf::Keyboard::Key get_key_for_action_4 (const controls_view &v)
 
sf::Mouse::Button get_button_for_do (const controls_view &)
 
sf::Keyboard::Key get_key_for_move_down (const controls_view &v)
 
sf::Keyboard::Key get_key_for_move_left (const controls_view &v)
 
sf::Keyboard::Key get_key_for_move_right (const controls_view &v)
 
sf::Keyboard::Key get_key_for_move_up (const controls_view &v)
 
sf::Mouse::Button get_button_for_next (const controls_view &)
 
void draw_background (controls_view &v)
 
void draw_keyboard_panel (controls_view &v)
 
void draw_mouse_panel (controls_view &v)
 
void draw_layout_panels (controls_view &v)
 Show where the panels will be drawn.
 
void draw_selected_panel (controls_view &v)
 
void draw_type_panel (controls_view &v)
 

Function Documentation

◆ draw_background()

void draw_background ( controls_view v)

◆ draw_keyboard_panel()

void draw_keyboard_panel ( controls_view v)

◆ draw_layout_panels()

void draw_layout_panels ( controls_view v)

Show where the panels will be drawn.

◆ draw_mouse_panel()

void draw_mouse_panel ( controls_view v)

◆ draw_panel()

void draw_panel ( const screen_rect panel_position,
const std::string  panel_text,
const chess_color  color,
const bool  is_active 
)
Parameters
is_activeif the panel is active: if true, draw with the real color, else use a greyed out color

◆ draw_selected_panel()

void draw_selected_panel ( controls_view v)

◆ draw_type_panel()

void draw_type_panel ( controls_view v)

◆ get_button_for_do()

sf::Mouse::Button get_button_for_do ( const controls_view v)

◆ get_button_for_next()

sf::Mouse::Button get_button_for_next ( const controls_view v)

◆ get_key_for_action_1()

sf::Keyboard::Key get_key_for_action_1 ( const controls_view v)

◆ get_key_for_action_2()

sf::Keyboard::Key get_key_for_action_2 ( const controls_view v)

◆ get_key_for_action_3()

sf::Keyboard::Key get_key_for_action_3 ( const controls_view v)

◆ get_key_for_action_4()

sf::Keyboard::Key get_key_for_action_4 ( const controls_view v)

◆ get_key_for_move_down()

sf::Keyboard::Key get_key_for_move_down ( const controls_view v)

◆ get_key_for_move_left()

sf::Keyboard::Key get_key_for_move_left ( const controls_view v)

◆ get_key_for_move_right()

sf::Keyboard::Key get_key_for_move_right ( const controls_view v)

◆ get_key_for_move_up()

sf::Keyboard::Key get_key_for_move_up ( const controls_view v)