Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
physical_controllers Class Reference

The physical controllers used by all players. More...

#include <physical_controllers.h>

Public Member Functions

 physical_controllers (const std::vector< physical_controller > controllers={ create_left_keyboard_controller(), create_default_mouse_controller() })
 
const physical_controllerget_controller (const side player_side) const noexcept
 Get the controller of a player.
 
physical_controllerget_controller (const side player_side) noexcept
 Get the controller of a player.
 
const auto & get_controllers () const noexcept
 Get the physical controllers.
 
void set (const side player_side, const physical_controller &controller)
 Set a controller.
 

Detailed Description

The physical controllers used by all players.

Constructor & Destructor Documentation

◆ physical_controllers()

physical_controllers::physical_controllers ( const std::vector< physical_controller controllers = create_left_keyboard_controller(), create_default_mouse_controller() })

Member Function Documentation

◆ get_controller() [1/2]

const physical_controller & physical_controllers::get_controller ( const side  player_side) const
noexcept

Get the controller of a player.

◆ get_controller() [2/2]

physical_controller & physical_controllers::get_controller ( const side  player_side)
noexcept

Get the controller of a player.

◆ get_controllers()

const auto & physical_controllers::get_controllers ( ) const
inlinenoexcept

Get the physical controllers.

◆ set()

void physical_controllers::set ( const side  player_side,
const physical_controller controller 
)

Set a controller.


The documentation for this class was generated from the following files: