#include <coord.h>
Definition at line 32 of file coord.h.
Public Types | |
enum | Direction { VERTICAL, HORIZONTAL } |
enum | coord_mode_t { COORD_MODE_COMPACT, COORD_MODE_LONG } |
Public Member Functions | |
Coord (int iRow=-1, int iCol=-1, Direction iDir=HORIZONTAL) | |
Coord (const string &iStr) | |
virtual | ~Coord () |
void | setRow (int iRow) |
void | setCol (int iCol) |
void | setDir (Direction iDir) |
int | getRow () const |
int | getCol () const |
Direction | getDir () const |
bool | isValid () const |
void | operator= (const Coord &iOther) |
void | swap () |
void | setFromString (const string &iStr) |
string | toString (coord_mode_t mode=COORD_MODE_COMPACT) const |
|
|
|
|
|
|
|
Definition at line 40 of file coord.cpp. References setFromString(). |
|
|
|
Definition at line 48 of file coord.h. Referenced by Board::addRound(), BoardSearchEvalMove(), LeftPart(), Board::removeRound(), and Board::testRound(). |
|
Definition at line 49 of file coord.h. Referenced by Board::addRound(), BoardSearchEvalMove(), Board::checkRound(), Board::removeRound(), Board::testRound(), and toString(). |
|
Definition at line 47 of file coord.h. Referenced by Board::addRound(), BoardSearchEvalMove(), Board::removeRound(), and Board::testRound(). |
|
Definition at line 45 of file coord.cpp. References BOARD_MAX, and BOARD_MIN. Referenced by Game::checkPlayedWord(), and toString(). |
|
|
|
Definition at line 45 of file coord.h. Referenced by BoardSearchAux(), Round::init(), LeftPart(), Board::searchFirst(), and setFromString(). |
|
Definition at line 46 of file coord.h. Referenced by BoardSearchAux(), Round::init(), Board::searchFirst(), and setFromString(). |
|
Definition at line 65 of file coord.cpp. References HORIZONTAL, setCol(), setDir(), setRow(), and VERTICAL. Referenced by Game::checkPlayedWord(), and Coord(). |
|
Definition at line 44 of file coord.h. Referenced by BoardSearchAux(), Round::init(), Board::searchFirst(), and setFromString(). |
|
Definition at line 58 of file coord.cpp. Referenced by BoardSearchEvalMove(). |
|
Definition at line 88 of file coord.cpp. References ASSERT, COORD_MODE_COMPACT, COORD_MODE_LONG, getDir(), HORIZONTAL, and isValid(). Referenced by searchResultLine(), and Round::toString(). |