Tile Class Reference

#include <tile.h>


Detailed Description

Definition at line 33 of file tile.h.

Public Member Functions

 Tile (char c=0)
virtual ~Tile ()
bool isEmpty () const
bool isJoker () const
bool isVowel () const
bool isConsonant () const
unsigned int maxNumber () const
unsigned int getPoints () const
char toChar () const
int toCode () const
bool operator< (const Tile &iOther) const
bool operator== (const Tile &iOther) const
bool operator!= (const Tile &iOther) const

Static Public Member Functions

static const Tiledummy ()
static const TileJoker ()
static const list< Tile > & getAllTiles ()


Constructor & Destructor Documentation

Tile::Tile char  c = 0  ) 
 

Definition at line 74 of file tile.cpp.

References TILE_JOKER.

Referenced by getAllTiles().

virtual Tile::~Tile  )  [inline, virtual]
 

Definition at line 43 of file tile.h.


Member Function Documentation

static const Tile& Tile::dummy  )  [inline, static]
 

Definition at line 54 of file tile.h.

Referenced by Board::removeRound(), and Board::removeTestRound().

const list< Tile > & Tile::getAllTiles  )  [static]
 

Definition at line 137 of file tile.cpp.

References Tile(), TILE_END, TILE_JOKER, and TILE_START.

Referenced by Bag::init(), GameIO::printNonPlayed(), Game::rackInBag(), and BagFrame::Refresh().

unsigned int Tile::getPoints  )  const
 

Definition at line 127 of file tile.cpp.

References TILE_IDX_JOKER, TILE_IDX_START, TILE_START, and Tiles_points.

Referenced by BoardSearchEvalMove().

bool Tile::isConsonant  )  const
 

Definition at line 107 of file tile.cpp.

References TILE_IDX_JOKER, TILE_IDX_START, TILE_START, and Tiles_consonants.

bool Tile::isEmpty  )  const [inline]
 

Definition at line 45 of file tile.h.

Referenced by Board::getChar().

bool Tile::isJoker  )  const [inline]
 

Definition at line 46 of file tile.h.

Referenced by Cross::check().

bool Tile::isVowel  )  const
 

Definition at line 97 of file tile.cpp.

References TILE_IDX_JOKER, TILE_IDX_START, TILE_START, and Tiles_vowels.

static const Tile& Tile::Joker  )  [inline, static]
 

Definition at line 55 of file tile.h.

Referenced by Game::back(), ExtendRight(), Game::gameLoadFormat_15(), LeftPart(), and History::playRound().

unsigned int Tile::maxNumber  )  const
 

Definition at line 117 of file tile.cpp.

References TILE_IDX_JOKER, TILE_IDX_START, TILE_START, and Tiles_numbers.

bool Tile::operator!= const Tile iOther  )  const
 

Definition at line 207 of file tile.cpp.

bool Tile::operator< const Tile iOther  )  const
 

Definition at line 173 of file tile.cpp.

References m_char, m_dummy, and m_joker.

bool Tile::operator== const Tile iOther  )  const
 

Definition at line 188 of file tile.cpp.

References m_char, m_dummy, and m_joker.

char Tile::toChar  )  const
 

Definition at line 150 of file tile.cpp.

References TILE_DUMMY, and TILE_JOKER.

Referenced by Board::getChar(), Round::getWord(), Game::helperPlayRound(), and Bag::takeTile().

int Tile::toCode  )  const
 

Definition at line 164 of file tile.cpp.

References TILE_IDX_DUMMY, TILE_IDX_START, and TILE_START.


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