| OOP A3 Board Games 35 a Board Game Project Made by Students at Cairo FCAI

Loading...
Searching...
No Matches
SUS_UI Class Reference

`#include <SUS.h>`

Inheritance diagram for SUS_UI:

## Public Member Functions
| SUS_UI ()
Move< char > * | get_move (Player< char > *player) override
| Ask the user (or AI) to make a move.
Public Member Functions inherited from UI< char >
| 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.
virtual Player< char > * | create_player (string &name, char symbol, PlayerType type)=0
| Create a player object based on input name, symbol, and type.
void | display_board_matrix (const vector< vector< char > > &matrix) const
| Display the current board matrix in formatted form.

## Additional Inherited Members
Protected Member Functions inherited from UI< char >
string | get_player_name (string player_label)
| Ask the user for the player's name.
PlayerType | get_player_type_choice (string player_label, const vector< string > &options)
| Ask the user to choose the player type from a list.
Protected Attributes inherited from UI< char >
int | cell_width
| Width of each displayed board cell.

## Constructor & Destructor Documentation

## ◆ SUS_UI()

SUS_UI::SUS_UI | ( |  | ) |
| inline

## Member Function Documentation

## ◆ get_move()

Move< char > * SUS_UI::get_move | ( | Player< char > * |  | ) |
| inline override virtual

Ask the user (or AI) to make a move.

Implements UI< char >.

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

- SUS.h