69 |
kJOKER // Joker game |
kJOKER // Joker game |
70 |
}; |
}; |
71 |
|
|
|
const Board& getBoard() const { return m_board; } |
|
|
const Bag& getBag() const { return m_bag; } |
|
|
|
|
72 |
/** |
/** |
73 |
* Accessors for the variant of the game. |
* Accessors for the variant of the game. |
74 |
* The variant can be changed during a game without any problem |
* The variant can be changed during a game without any problem |
84 |
const Dictionary & getDic() const { return *m_dic; } |
const Dictionary & getDic() const { return *m_dic; } |
85 |
void setDic(const Dictionary &iDic) { m_dic = &iDic; } |
void setDic(const Dictionary &iDic) { m_dic = &iDic; } |
86 |
|
|
87 |
|
const Board& getBoard() const { return m_board; } |
88 |
|
const Bag& getBag() const { return m_bag; } |
89 |
|
const Player& getPlayer(int iIndex) const; |
90 |
|
|
91 |
/** |
/** |
92 |
* Saved games handling. |
* Saved games handling. |
93 |
* |
* |
144 |
virtual void addHumanPlayer(); |
virtual void addHumanPlayer(); |
145 |
// TODO: Ability to specify which kind of AI player is wanted |
// TODO: Ability to specify which kind of AI player is wanted |
146 |
virtual void addAIPlayer(); |
virtual void addAIPlayer(); |
|
int getPlayerPoints(int) const; |
|
147 |
string getPlayerRack(int, bool = false) const; |
string getPlayerRack(int, bool = false) const; |
148 |
|
|
149 |
int currPlayer() const { return m_currPlayer; } |
int currPlayer() const { return m_currPlayer; } |
200 |
int helperSetRackRandom(int p, bool iCheck, set_rack_mode mode); |
int helperSetRackRandom(int p, bool iCheck, set_rack_mode mode); |
201 |
int helperSetRackManual(int p, bool iCheck, const string &iLetters); |
int helperSetRackManual(int p, bool iCheck, const string &iLetters); |
202 |
|
|
|
string formatCoords(const Round &iRound) const; |
|
|
string formatPlayedRack(const PlayedRack &iRack, |
|
|
bool showExtraSigns = true) const; |
|
203 |
void prevPlayer(); |
void prevPlayer(); |
204 |
void nextPlayer(); |
void nextPlayer(); |
205 |
bool rackInBag(const Rack &iRack, const Bag &iBag) const; |
bool rackInBag(const Rack &iRack, const Bag &iBag) const; |