My Project
UML Lab
Loading...
Searching...
No Matches
player.h
Go to the documentation of this file.
1#ifndef MAINPROJECT_PLAYER_H
2#define MAINPROJECT_PLAYER_H
3
4#include <SFML/Graphics.hpp>
5
9class Player {
10public:
14 enum class PlayerType {
15 Human,
17 };
18
23 Player(const sf::Color color);
24
30 Player(sf::Color color, PlayerType type);
31
36 sf::Color getColor() const { return color; }
37
39private:
40 friend class Board;
41 sf::Color color;
43};
44
45#endif // MAINPROJECT_PLAYER_H
Represents the game board and its functionality.
Definition board.h:21
Class representing a player in the game.
Definition player.h:9
PlayerType type
Definition player.h:38
sf::Color color
Definition player.h:41
sf::Color getColor() const
Getter function for the color of the player.
Definition player.h:36
PlayerType
Enumeration representing the type of player.
Definition player.h:14
Player(const sf::Color color)
Constructor for Player class with default type as Human.
Definition player.cpp:7