C++ Joueur Client
|
The simple version of American Checkers. An 8x8 board with 12 checkers on each side that must move diagonally to the opposing side until kinged. More...
#include <game.hpp>
Public Attributes | |
const int & | board_height |
The height of the board for the Y component of a checker. More... | |
const int & | board_width |
The width of the board for X component of a checker. More... | |
const Checker & | checker_moved |
The checker that last moved and must be moved because only one checker can move during each players turn. More... | |
const bool & | checker_moved_jumped |
If the last checker that moved jumped, meaning it can move again. More... | |
const std::vector< Checker > & | checkers |
All the checkers currently in the game. More... | |
const Player & | current_player |
The player whose turn it is currently. That player can send commands. Other players cannot. More... | |
const int & | current_turn |
The current turn number, starting at 0 for the first player's turn. More... | |
const std::unordered_map < std::string, Game_object > & | game_objects |
A mapping of every game object's ID to the actual game object. Primarily used by the server and client to easily refer to the game objects via ID. More... | |
const int & | max_turns |
The maximum number of turns before the game will automatically end. More... | |
const std::vector< Player > & | players |
List of all the players in the game. More... | |
const std::string & | session |
A unique identifier for the game instance that is being played. More... | |
const int & | time_added_per_turn |
The amount of time (in nano-seconds) added after each player performs a turn. More... | |
The simple version of American Checkers. An 8x8 board with 12 checkers on each side that must move diagonally to the opposing side until kinged.
const int& cpp_client::checkers::Game::board_height |
The height of the board for the Y component of a checker.
const int& cpp_client::checkers::Game::board_width |
The width of the board for X component of a checker.
const Checker& cpp_client::checkers::Game::checker_moved |
The checker that last moved and must be moved because only one checker can move during each players turn.
const bool& cpp_client::checkers::Game::checker_moved_jumped |
If the last checker that moved jumped, meaning it can move again.
const std::vector<Checker>& cpp_client::checkers::Game::checkers |
All the checkers currently in the game.
const Player& cpp_client::checkers::Game::current_player |
The player whose turn it is currently. That player can send commands. Other players cannot.
const int& cpp_client::checkers::Game::current_turn |
The current turn number, starting at 0 for the first player's turn.
const std::unordered_map<std::string, Game_object>& cpp_client::checkers::Game::game_objects |
A mapping of every game object's ID to the actual game object. Primarily used by the server and client to easily refer to the game objects via ID.
const int& cpp_client::checkers::Game::max_turns |
The maximum number of turns before the game will automatically end.
const std::vector<Player>& cpp_client::checkers::Game::players |
List of all the players in the game.
const std::string& cpp_client::checkers::Game::session |
A unique identifier for the game instance that is being played.
const int& cpp_client::checkers::Game::time_added_per_turn |
The amount of time (in nano-seconds) added after each player performs a turn.