![]() |
OOP A3 Board Games 35
a Board Game Project Made by Students at Cairo FCAI
|
#include <Numerical_Player.h>
Public Member Functions | |
| Numerical_Player (string n, bool odd, PlayerType t) | |
| Public Member Functions inherited from Player< int > | |
| Player (string n, int 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'). | |
| int | get_symbol () const |
| Get the player's symbol. | |
| Board< int > * | get_board_ptr () const |
| Get a pointer to the game board. | |
| void | set_board_ptr (Board< int > *b) |
| Assign the board pointer for the player. | |
Public Attributes | |
| bool | isOdd |
Additional Inherited Members | |
| Protected Attributes inherited from Player< int > | |
| string | name |
| Player name. | |
| PlayerType | type |
| Player type (e.g., HUMAN or COMPUTER). | |
| int | symbol |
| Player’s symbol on board. | |
| Board< int > * | boardPtr |
| Pointer to the game board. | |
|
inline |
| bool Numerical_Player::isOdd |