OOP A3 Board Games 35
a Board Game Project Made by Students at Cairo FCAI
Loading...
Searching...
No Matches
TicTacToe4x4_Player Class Reference

#include <TicTacToe4x4.h>

Inheritance diagram for TicTacToe4x4_Player:
Player< char >

Public Member Functions

 TicTacToe4x4_Player (string name, char symbol, PlayerType type)
Public Member Functions inherited from Player< char >
 Player (string n, char s, PlayerType t)
 Construct a player with name, symbol, and type.
virtual ~Player ()
string get_name () const
 Get the player's name.
PlayerType get_type () const
 Get player type (e.g., 'H' or 'C').
char get_symbol () const
 Get the player's symbol.
Board< char > * get_board_ptr () const
 Get a pointer to the game board.
void set_board_ptr (Board< char > *b)
 Assign the board pointer for the player.

Additional Inherited Members

Protected Attributes inherited from Player< char >
string name
 Player name.
PlayerType type
 Player type (e.g., HUMAN or COMPUTER).
char symbol
 Player’s symbol on board.
Board< char > * boardPtr
 Pointer to the game board.

Constructor & Destructor Documentation

◆ TicTacToe4x4_Player()

TicTacToe4x4_Player::TicTacToe4x4_Player ( string name,
char symbol,
PlayerType type )
inline

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