kigo
Go to the documentation of this file.
31 : m_x(x), m_y(y), m_value(value)
36 : m_x(0), m_y(0), m_value(value)
38 if (stone.size() >= 2) {
39 m_x = stone[0].toUpper().toLatin1();
40 m_y = stone.mid(1).toInt();
45 : m_x(other.m_x), m_y(other.m_y), m_value(other.m_value)
53 m_value = other.m_value;
60 return m_y >= 1 && m_y <= 19 && m_x >=
'A' && m_x !=
'I' && m_x <=
'T';
65 return QByteArray(m_x + QByteArray::number(m_y));
70 return QString(m_x + QString::number(m_y));
75 debug.nospace() <<
"stone at " << stone.
x() <<
"," << stone.
y()
76 <<
" of value " << stone.
value();
Stone & operator=(const Stone &other)
static Stone Invalid
A standard invalid move object.
static Stone Pass
A standard pass move object.
This class represents a stone on a field of the game board.
QByteArray toLatin1() const
QDebug operator<<(QDebug debug, const Move &move)
Stone(char x=0, int y=0, float value=0)
Standard constructor.
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.