rp-scrabble
Simple, terminal-based Scrabble game
include
tile.h
Go to the documentation of this file.
1
4
#ifndef TILE_H
5
#define TILE_H
6
#include <string>
7
8
class
Bag
;
9
class
Rack
;
10
class
Square
;
11
15
enum
enum_location
{
BAG
,
RACK
,
BOARD
};
16
22
class
Tile
{
23
private
:
24
Square
*
tSquare
;
25
char
letter
;
26
int
points
;
27
Bag
*
tBag
;
28
Rack
*
tRack
;
29
enum_location
presentLoc
;
30
31
public
:
32
Tile
(
char
l,
int
p,
enum_location
p_loc);
33
Tile
(
Tile
& source);
34
~Tile
() {}
35
36
char
getLetter
();
37
std::string
getLetterStr
();
38
int
getPoints
();
39
int
getLoc
();
40
Rack
*
getRack
();
41
Bag
*
getBag
();
42
Square
*
getSquare
();
43
44
void
setLoc
(
int
loc
);
45
void
setBag
(
Bag
* b);
46
void
setRack
(
Rack
* r);
47
void
setSquare
(
Square
* s);
48
void
show
();
49
50
};
51
52
#endif
loc
enum_location loc
Definition:
bag.cc:13
Bag
Definition:
bag.h:15
Rack
Definition:
rack.h:17
Square
Definition:
square.h:30
Tile
Definition:
tile.h:22
Tile::getPoints
int getPoints()
Definition:
tile.cc:73
Tile::presentLoc
enum_location presentLoc
Definition:
tile.h:29
Tile::setSquare
void setSquare(Square *s)
Definition:
tile.cc:207
Tile::tSquare
Square * tSquare
Definition:
tile.h:24
Tile::getBag
Bag * getBag()
Definition:
tile.cc:133
Tile::show
void show()
Definition:
tile.cc:49
Tile::getRack
Rack * getRack()
Definition:
tile.cc:121
Tile::tBag
Bag * tBag
Definition:
tile.h:27
Tile::points
int points
Definition:
tile.h:26
Tile::Tile
Tile(char l, int p, enum_location p_loc)
Definition:
tile.cc:21
Tile::getSquare
Square * getSquare()
Definition:
tile.cc:145
Tile::setRack
void setRack(Rack *r)
Definition:
tile.cc:170
Tile::getLetterStr
std::string getLetterStr()
Definition:
tile.cc:109
Tile::tRack
Rack * tRack
Definition:
tile.h:28
Tile::~Tile
~Tile()
Definition:
tile.h:34
Tile::letter
char letter
Definition:
tile.h:25
Tile::setBag
void setBag(Bag *b)
Definition:
tile.cc:157
Tile::getLoc
int getLoc()
Definition:
tile.cc:85
Tile::setLoc
void setLoc(int loc)
Definition:
tile.cc:183
Tile::getLetter
char getLetter()
Definition:
tile.cc:61
enum_location
enum_location
Definition:
tile.h:15
BAG
@ BAG
Definition:
tile.h:15
BOARD
@ BOARD
Definition:
tile.h:15
RACK
@ RACK
Definition:
tile.h:15
Generated by
1.9.1