Board Class Reference

#include <board.h>


Detailed Description

Definition at line 60 of file board.h.

Public Member Functions

 Board ()
virtual ~Board ()
char getChar (int iRow, int iCol) const
int getCharAttr (int iRow, int iCol) const
Tile getTile (int iRow, int iCol) const
bool isJoker (int iRow, int iCol) const
bool isVacant (int iRow, int iCol) const
void addRound (const Dictionary &iDic, const Round &iRound)
void removeRound (const Dictionary &iDic, const Round &iRound)
int checkRound (Round &iRound, bool iFirstTurn)
void testRound (const Round &iRound)
void removeTestRound ()
char getTestChar (int iRow, int iCol) const
void search (const Dictionary &iDic, const Rack &iRack, Results &oResults)
 board_search.c
void searchFirst (const Dictionary &iDic, const Rack &iRack, Results &oResults)
void buildCross (const Dictionary &iDic)
 board_cross.c
int getWordMultiplier (int iRow, int iCol) const
int getLetterMultiplier (int iRow, int iCol) const


Constructor & Destructor Documentation

Board::Board (   ) 
 

Definition at line 81 of file board.cpp.

References BOARD_REALDIM.

virtual Board::~Board (   )  [inline, virtual]
 

Definition at line 64 of file board.h.


Member Function Documentation

void Board::addRound (  const Dictionary &  iDic,
const Round &  iRound
) 
 

Definition at line 151 of file board.cpp.

References Coord::getCol(), Round::getCoord(), Coord::getDir(), Coord::getRow(), Round::getTile(), Round::getWordLen(), Coord::HORIZONTAL, and Round::isJoker().

void Board::buildCross (  const Dictionary &  iDic  ) 
 

board_cross.c

Definition at line 126 of file board_cross.cpp.

References Board_check().

int Board::checkRound (  Round &  iRound,
bool  iFirstTurn
) 
 

Definition at line 335 of file board.cpp.

References Round::getCoord(), Coord::getDir(), and Coord::HORIZONTAL.

char Board::getChar (  int  iRow,
int  iCol
)  const
 

Definition at line 107 of file board.cpp.

References getTile(), Tile::isEmpty(), isJoker(), and Tile::toChar().

Referenced by GameIO::printBoard(), GameIO::printBoardJoker(), GameIO::printBoardMultipliers(), and GameIO::printBoardMultipliers2().

int Board::getCharAttr (  int  iRow,
int  iCol
)  const
 

Definition at line 120 of file board.cpp.

References getTestChar(), and isJoker().

Referenced by GameIO::printBoardJoker().

int Board::getLetterMultiplier (  int  iRow,
int  iCol
)  const
 

Definition at line 438 of file board.cpp.

References BOARD_MAX.

Referenced by BoardSearchEvalMove(), GameIO::printBoardMultipliers(), and GameIO::printBoardMultipliers2().

char Board::getTestChar (  int  iRow,
int  iCol
)  const
 

Definition at line 423 of file board.cpp.

Referenced by getCharAttr().

Tile Board::getTile (  int  iRow,
int  iCol
)  const
 

Definition at line 128 of file board.cpp.

Referenced by Game::gameLoadFormat_15(), and getChar().

int Board::getWordMultiplier (  int  iRow,
int  iCol
)  const
 

Definition at line 429 of file board.cpp.

References BOARD_MAX.

Referenced by BoardSearchEvalMove(), GameIO::printBoardMultipliers(), and GameIO::printBoardMultipliers2().

bool Board::isJoker (  int  iRow,
int  iCol
)  const
 

Definition at line 134 of file board.cpp.

Referenced by getChar(), and getCharAttr().

bool Board::isVacant (  int  iRow,
int  iCol
)  const
 

Definition at line 140 of file board.cpp.

References BOARD_DIM.

void Board::removeRound (  const Dictionary &  iDic,
const Round &  iRound
) 
 

Definition at line 193 of file board.cpp.

References Tile::dummy(), Coord::getCol(), Round::getCoord(), Coord::getDir(), Coord::getRow(), Round::getWordLen(), Coord::HORIZONTAL, and Round::isPlayedFromRack().

Referenced by Game::back().

void Board::removeTestRound (   ) 
 

Definition at line 403 of file board.cpp.

References BOARD_DIM, and Tile::dummy().

Referenced by Training::removeTestPlay().

void Board::search (  const Dictionary &  iDic,
const Rack &  iRack,
Results &  oResults
) 
 

board_search.c

Definition at line 258 of file board_search.cpp.

References BoardSearchAux(), Coord::HORIZONTAL, and Coord::VERTICAL.

Referenced by Results::search().

void Board::searchFirst (  const Dictionary &  iDic,
const Rack &  iRack,
Results &  oResults
) 
 

Definition at line 275 of file board_search.cpp.

References Round::accessCoord(), Dic_root(), Coord::HORIZONTAL, LeftPart(), Rack::nTiles(), Coord::setCol(), Coord::setDir(), and Coord::setRow().

Referenced by Results::search().

void Board::testRound (  const Round &  iRound  ) 
 

Definition at line 361 of file board.cpp.

References Coord::getCol(), Round::getCoord(), Coord::getDir(), Coord::getRow(), Round::getTile(), Round::getWordLen(), Coord::HORIZONTAL, and Round::isJoker().

Referenced by Training::testPlay().


The documentation for this class was generated from the following files:
Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5