kigo
Kigo::Player Class Reference
#include <player.h>
Public Types | |
enum | Color { White = 1, Black, Invalid } |
enum | Type { Human = 1, Computer } |
Public Member Functions | |
Player (const Player &other) | |
Color | color () const |
bool | isBlack () const |
bool | isComputer () const |
bool | isHuman () const |
bool | isValid () const |
bool | isWhite () const |
QString | name () const |
Player & | operator= (const Player &other) |
bool | operator== (const Player &other) const |
void | setColor (Color color) |
void | setName (const QString &name) |
bool | setStrength (int strength) |
void | setType (Type type) |
int | strength () const |
Type | type () const |
Detailed Description
The Player class holds all basic attributes of a Go player.
These mean mostly name, skill and color. Instances are particular to a specific game and can thus only be created by the Go engine (Kigo::Game).
- Since
- 0.5
Member Enumeration Documentation
enum Kigo::Player::Color |
enum Kigo::Player::Type |
Constructor & Destructor Documentation
Kigo::Player::Player | ( | const Player & | other | ) |
Definition at line 32 of file player.cpp.
Member Function Documentation
Definition at line 38 of file player.cpp.
bool Kigo::Player::operator== | ( | const Player & | other | ) | const |
Definition at line 47 of file player.cpp.
bool Kigo::Player::setStrength | ( | int | strength | ) |
Definition at line 55 of file player.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.