Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Classes | Functions
key_bindings.h File Reference
#include "ccfwd.h"
#include "user_input_type.h"
#include <SFML/Window/Keyboard.hpp>
#include <SFML/Window/Event.hpp>
#include <iosfwd>
#include <vector>
Include dependency graph for key_bindings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  key_bindings
 The key bindings. More...
 

Functions

key_bindings create_left_keyboard_key_bindings () noexcept
 Create the key bindings for a player at the left side of a keyboard.
 
key_bindings create_right_keyboard_key_bindings () noexcept
 Create the key bindings for a player at the right side of a keyboard.
 
sf::Keyboard::Key get_key_for_action (const key_bindings &k, const action_number &action) noexcept
 Get the key for a specific action.
 
void test_key_bindings ()
 Test this class and its free functions.
 
bool operator== (const key_bindings &lhs, const key_bindings &rhs) noexcept
 
std::ostream & operator<< (std::ostream &os, const key_bindings &keys) noexcept
 

Function Documentation

◆ create_left_keyboard_key_bindings()

key_bindings create_left_keyboard_key_bindings ( )
noexcept

Create the key bindings for a player at the left side of a keyboard.

◆ create_right_keyboard_key_bindings()

key_bindings create_right_keyboard_key_bindings ( )
noexcept

Create the key bindings for a player at the right side of a keyboard.

◆ get_key_for_action()

sf::Keyboard::Key get_key_for_action ( const key_bindings k,
const action_number action 
)
noexcept

Get the key for a specific action.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const key_bindings keys 
)
noexcept

◆ operator==()

bool operator== ( const key_bindings lhs,
const key_bindings rhs 
)
noexcept

◆ test_key_bindings()

void test_key_bindings ( )

Test this class and its free functions.