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

The options that are set in the lobby. More...

#include <lobby_options.h>

Public Member Functions

 lobby_options (const chess_color lhs_color=chess_color::white, const race lhs_race=race::classic, const race rhs_race=race::classic)
 
chess_color get_color (const side player_side) const noexcept
 Get the chess color of a player.
 
race get_race (const chess_color player_color) const noexcept
 Get the race of a player color.
 
race get_race (const side player_side) const noexcept
 Get the race of a player side.
 
side get_side (const chess_color player_color) const noexcept
 Get the side of a player color.
 
void set_color (const chess_color color, const side player_side) noexcept
 Set the chess color of a player.
 
void set_race (const race r, const side player_side) noexcept
 Get the chess color of a player.
 

Friends

void test_lobby_options ()
 To use the constructor.
 

Detailed Description

The options that are set in the lobby.

This is where the players decide on their colors and races.

Constructor & Destructor Documentation

◆ lobby_options()

lobby_options::lobby_options ( const chess_color  lhs_color = chess_color::white,
const race  lhs_race = race::classic,
const race  rhs_race = race::classic 
)

Member Function Documentation

◆ get_color()

chess_color lobby_options::get_color ( const side  player_side) const
noexcept

Get the chess color of a player.

◆ get_race() [1/2]

race lobby_options::get_race ( const chess_color  player_color) const
noexcept

Get the race of a player color.

◆ get_race() [2/2]

race lobby_options::get_race ( const side  player_side) const
noexcept

Get the race of a player side.

◆ get_side()

side lobby_options::get_side ( const chess_color  player_color) const
noexcept

Get the side of a player color.

◆ set_color()

void lobby_options::set_color ( const chess_color  color,
const side  player_side 
)
noexcept

Set the chess color of a player.

◆ set_race()

void lobby_options::set_race ( const race  r,
const side  player_side 
)
noexcept

Get the chess color of a player.

Friends And Related Symbol Documentation

◆ test_lobby_options

void test_lobby_options ( )
friend

To use the constructor.


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