Instance of a pattern matching a subset of the board. More...
#include <PatternState.hpp>
Public Member Functions | |
PatternHit (const Pattern *pat, HexPoint move) | |
Creates an instance with a single encoded move1, and move2 is empty. | |
PatternHit (const Pattern *pat, const std::vector< HexPoint > &moves1) | |
Creates an instance with a set of encoded move1, and move2 is empty. | |
PatternHit (const Pattern *pat, const std::vector< HexPoint > &moves1, const std::vector< HexPoint > &moves2) | |
Creates an instance with two sets of encoded moves. | |
const Pattern * | pattern () const |
Returns the pattern. | |
const std::vector< HexPoint > & | moves1 () const |
Returns the set of moves the pattern encodes. | |
const std::vector< HexPoint > & | moves2 () const |
Private Attributes | |
const Pattern * | m_pattern |
std::vector< HexPoint > | m_moves1 |
std::vector< HexPoint > | m_moves2 |
Instance of a pattern matching a subset of the board.
Definition at line 19 of file PatternState.hpp.
Creates an instance with a single encoded move1, and move2 is empty.
Definition at line 52 of file PatternState.hpp.
Creates an instance with a set of encoded move1, and move2 is empty.
Definition at line 59 of file PatternState.hpp.
PatternHit::PatternHit | ( | const Pattern * | pat, | |
const std::vector< HexPoint > & | moves1, | |||
const std::vector< HexPoint > & | moves2 | |||
) | [inline] |
Creates an instance with two sets of encoded moves.
Definition at line 67 of file PatternState.hpp.
const std::vector< HexPoint > & PatternHit::moves1 | ( | ) | const [inline] |
Returns the set of moves the pattern encodes.
Definition at line 81 of file PatternState.hpp.
References m_moves1.
const std::vector< HexPoint > & PatternHit::moves2 | ( | ) | const [inline] |
Definition at line 86 of file PatternState.hpp.
References m_moves2.
const Pattern * PatternHit::pattern | ( | ) | const [inline] |
std::vector<HexPoint> PatternHit::m_moves1 [private] |
Definition at line 47 of file PatternState.hpp.
Referenced by moves1().
std::vector<HexPoint> PatternHit::m_moves2 [private] |
Definition at line 49 of file PatternState.hpp.
Referenced by moves2().
const Pattern* PatternHit::m_pattern [private] |
Definition at line 45 of file PatternState.hpp.
Referenced by pattern().