Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

Move Class Reference

A (HexColor, HexPoint) pair. More...

#include <Move.hpp>

List of all members.

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

Detailed Description

A (HexColor, HexPoint) pair.

Definition at line 16 of file Move.hpp.


Constructor & Destructor Documentation

Move::Move ( HexColor  color,
HexPoint  point 
) [inline]

Creates the move (color, point).

Definition at line 43 of file Move.hpp.


Member Function Documentation

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]

Returns true !operator==(other).

Definition at line 71 of file Move.hpp.

References operator==().

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<<().


Member Data Documentation

Definition at line 39 of file Move.hpp.

Referenced by color(), operator==(), and toString().

Definition at line 40 of file Move.hpp.

Referenced by operator==(), point(), and toString().


The documentation for this class was generated from the following file:


6 Jan 2011 Doxygen 1.6.3