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

Loading...
Searching...
No Matches
Numerical_Player.h
Go to the documentation of this file.
1#pragma once
2#include "BoardGame_Classes.h"
3
4 class Numerical_Player : public Player<int> {
5 public:
6 bool isOdd;
7 Numerical_Player(string n, bool odd, PlayerType t)
8 : Player<int>(n, 0, t), isOdd(odd) {}
9};
10
BoardGame_Classes.h
PlayerType
PlayerType
Represents the type of player in the game.
Definition BoardGame_Classes.h:24
Numerical_Player::isOdd
bool isOdd
Definition Numerical_Player.h:6
Numerical_Player::Numerical_Player
Numerical_Player(string n, bool odd, PlayerType t)
Definition Numerical_Player.h:7
Player< int >::Player
Player(string n, int s, PlayerType t)
Definition BoardGame_Classes.h:137