Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Tile Class Reference

#include </home/clem/local/src/opie/noncore/games/wordgame/wordgame.h>

Collaboration diagram for Tile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Tile ()
 Tile (const Tile &t)
 Tile (QString text, int value)
 Tile (const QString &key)
int value () const
bool isBlank () const
QString text () const
void setText (const QString &t)
int operator== (const Tile &o) const
int operator!= (const Tile &o) const
Tileoperator= (const Tile &o)
QString key () const

Private Attributes

QString txt
int val
bool blank

Constructor & Destructor Documentation

Tile::Tile  )  [inline]
 

Definition at line 41 of file wordgame.h.

Tile::Tile const Tile t  )  [inline]
 

Definition at line 43 of file wordgame.h.

References blank, txt, and val.

Tile::Tile QString  text,
int  value
[inline]
 

Definition at line 50 of file wordgame.h.

References blank, QString::isEmpty(), txt, and val.

Tile::Tile const QString key  ) 
 

Definition at line 1383 of file wordgame.cpp.

References blank, QString::find(), QString::isEmpty(), QString::left(), QString::mid(), txt, and val.


Member Function Documentation

bool Tile::isBlank  )  const [inline]
 

Definition at line 60 of file wordgame.h.

References blank.

Referenced by ComputerPlayer::findBest(), Rack::setBlanks(), and ComputerPlayer::step().

QString Tile::key  )  const
 

Definition at line 1391 of file wordgame.cpp.

References QString::number(), txt, and val.

int Tile::operator!= const Tile o  )  const [inline]
 

Definition at line 69 of file wordgame.h.

References operator==().

Tile& Tile::operator= const Tile o  )  [inline]
 

Definition at line 71 of file wordgame.h.

References blank, txt, and val.

int Tile::operator== const Tile o  )  const [inline]
 

Definition at line 67 of file wordgame.h.

References blank, txt, and val.

Referenced by operator!=().

void Tile::setText const QString t  )  [inline]
 

Definition at line 62 of file wordgame.h.

References txt.

Referenced by Rack::setBlanks().

QString Tile::text  )  const [inline]
 

Definition at line 61 of file wordgame.h.

References txt.

Referenced by TileItem::drawShape(), ComputerPlayer::findBest(), Board::score(), Rack::setBlanks(), and ComputerPlayer::step().

int Tile::value  )  const [inline]
 

Definition at line 59 of file wordgame.h.

References val.

Referenced by TileItem::drawShape().


Member Data Documentation

bool Tile::blank [private]
 

Definition at line 79 of file wordgame.h.

Referenced by isBlank(), operator=(), operator==(), and Tile().

QString Tile::txt [private]
 

Definition at line 77 of file wordgame.h.

Referenced by key(), operator=(), operator==(), setText(), text(), and Tile().

int Tile::val [private]
 

Definition at line 78 of file wordgame.h.

Referenced by key(), operator=(), operator==(), Tile(), and value().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:53:56 2005 for OPIE by  doxygen 1.4.2