Rack Class Reference

#include <rack.h>


Detailed Description

A rack is a set of tiles, no more.

Tiles have to be in the bag for the rack to be valid.

Definition at line 43 of file rack.h.

Public Member Functions

 Rack ()
virtual ~Rack ()
int nTiles () const
bool isEmpty () const
unsigned int in (const Tile &t) const
void add (const Tile &t)
void remove (const Tile &t)
void clear ()
void getTiles (list< Tile > &oTiles) const
string toString ()


Constructor & Destructor Documentation

Rack::Rack  )  [inline]
 

Definition at line 46 of file rack.h.

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

Definition at line 47 of file rack.h.


Member Function Documentation

void Rack::add const Tile t  )  [inline]
 

Definition at line 53 of file rack.h.

Referenced by ExtendRight(), PlayedRack::getNew(), PlayedRack::getOld(), PlayedRack::getRack(), and LeftPart().

void Rack::clear  )  [inline]
 

Definition at line 55 of file rack.h.

Referenced by PlayedRack::getNew(), and PlayedRack::getOld().

void Rack::getTiles list< Tile > &  oTiles  )  const
 

Definition at line 39 of file rack.cpp.

Referenced by PlayedRack::setNew(), and PlayedRack::setOld().

unsigned int Rack::in const Tile t  )  const [inline]
 

Definition at line 52 of file rack.h.

Referenced by ExtendRight(), LeftPart(), and Game::rackInBag().

bool Rack::isEmpty  )  const [inline]
 

Definition at line 50 of file rack.h.

References nTiles().

int Rack::nTiles  )  const [inline]
 

Definition at line 49 of file rack.h.

Referenced by isEmpty(), and Board::searchFirst().

void Rack::remove const Tile t  ) 
 

Definition at line 31 of file rack.cpp.

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

string Rack::toString  ) 
 

Definition at line 49 of file rack.cpp.

Referenced by Training::search().


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