A (HexColor, HexPoint) pair. More...
#include <Move.hpp>
Public Member Functions | |
Move (HexColor color, HexPoint point) | |
Creates the move (color, point). | |
HexColor | color () const |
Returns color of move. | |
HexPoint | point () const |
Returns point of move. | |
std::string | toString () const |
Outputs a [color, move] string. | |
bool | operator== (const Move &other) const |
Returns true if point and color are equal. | |
bool | operator!= (const Move &other) const |
Returns true !operator==(other). | |
Private Attributes | |
HexColor | m_color |
HexPoint | m_point |
A (HexColor, HexPoint) pair.
Definition at line 16 of file Move.hpp.
HexColor Move::color | ( | ) | const [inline] |
Returns color of move.
Definition at line 48 of file Move.hpp.
References m_color.
Referenced by GameUtil::SequenceFromPosition().
bool Move::operator!= | ( | const Move & | other | ) | const [inline] |
bool Move::operator== | ( | const Move & | other | ) | const [inline] |
Returns true if point and color are equal.
Definition at line 65 of file Move.hpp.
References m_color, and m_point.
Referenced by operator!=().
HexPoint Move::point | ( | ) | const [inline] |
Returns point of move.
Definition at line 53 of file Move.hpp.
References m_point.
Referenced by GameUtil::HistoryToSequence(), and GameUtil::SequenceFromPosition().
std::string Move::toString | ( | ) | const [inline] |
Outputs a [color, move] string.
Definition at line 58 of file Move.hpp.
References m_color, and m_point.
Referenced by operator<<().
HexColor Move::m_color [private] |
Definition at line 39 of file Move.hpp.
Referenced by color(), operator==(), and toString().
HexPoint Move::m_point [private] |
Definition at line 40 of file Move.hpp.
Referenced by operator==(), point(), and toString().