#include <FourUI.h>
|
| | FourUI () |
| void | print_board (const vector< vector< char > > &b) |
| Move< char > * | get_move (Player< char > *p) override |
| | Ask the user (or AI) to make a move.
|
| Player< char > * | create_player (string &name, char symbol, PlayerType type) override |
| | Create a player object based on input name, symbol, and type.
|
| | UI (string message, int cell_display_width) |
| | Construct the UI and display a welcome message.
|
| virtual | ~UI () |
| void | display_message (string message) |
| | Display any message to the user.
|
| virtual Player< char > ** | setup_players () |
| | Set up players for the game.
|
| void | display_board_matrix (const vector< vector< char > > &matrix) const |
| | Display the current board matrix in formatted form.
|
◆ FourUI()
◆ create_player()
| Player< char > * FourUI::create_player |
( |
string & | name, |
|
|
char | symbol, |
|
|
PlayerType | type ) |
|
inlineoverridevirtual |
Create a player object based on input name, symbol, and type.
Implements UI< char >.
◆ get_move()
| Move< char > * FourUI::get_move |
( |
Player< char > * | | ) |
|
|
inlineoverridevirtual |
Ask the user (or AI) to make a move.
Implements UI< char >.
◆ print_board()
| void FourUI::print_board |
( |
const vector< vector< char > > & | b | ) |
|
|
inline |
The documentation for this class was generated from the following file: