kigo
Go to the documentation of this file.
27 Player::Player(Color color, Type type)
28 : m_color(color), m_type(type), m_strength(10)
33 : m_name(other.m_name), m_color(other.m_color)
34 , m_type(other.m_type), m_strength(other.m_strength)
40 m_name = other.m_name;
41 m_color = other.m_color;
42 m_type = other.m_type;
43 m_strength = other.m_strength;
49 return m_name == other.m_name &&
50 m_color == other.m_color &&
51 m_type == other.m_type &&
52 m_strength == other.m_type;
57 if (strength > 0 && strength < 11) {
68 debug.nospace() <<
"white";
70 debug.nospace() <<
"black";
72 debug.nospace() <<
"invalid";
74 debug.nospace() <<
" player " << player.
name();
Player & operator=(const Player &other)
bool operator==(const Player &other) const
bool setStrength(int strength)
The Player class holds all basic attributes of a Go player.
QDebug operator<<(QDebug debug, const Move &move)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:15 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.