rp-scrabble
Simple, terminal-based Scrabble game
|
#include <tile.h>
Public Member Functions | |
Tile (char l, int p, enum_location p_loc) | |
Tile (Tile &source) | |
~Tile () | |
char | getLetter () |
std::string | getLetterStr () |
int | getPoints () |
int | getLoc () |
Rack * | getRack () |
Bag * | getBag () |
Square * | getSquare () |
void | setLoc (int loc) |
void | setBag (Bag *b) |
void | setRack (Rack *r) |
void | setSquare (Square *s) |
void | show () |
Private Attributes | |
Square * | tSquare |
char | letter |
int | points |
Bag * | tBag |
Rack * | tRack |
enum_location | presentLoc |
Implements a physical scrabble tile
Each Tile has a letter, points, a bag and a rack associated with it
Tile::Tile | ( | char | l, |
int | p, | ||
enum_location | p_loc | ||
) |
Tile::Tile | ( | Tile & | source | ) |
Bag * Tile::getBag | ( | ) |
char Tile::getLetter | ( | ) |
string Tile::getLetterStr | ( | ) |
int Tile::getLoc | ( | ) |
int Tile::getPoints | ( | ) |
Rack * Tile::getRack | ( | ) |
Square * Tile::getSquare | ( | ) |
void Tile::setBag | ( | Bag * | b | ) |
void Tile::setLoc | ( | int | loc | ) |
void Tile::setRack | ( | Rack * | r | ) |
void Tile::setSquare | ( | Square * | s | ) |
void Tile::show | ( | ) |
|
private |