lint/style changes
This commit is contained in:
parent
4404eb21e9
commit
8736aee27c
@ -22,7 +22,9 @@ public:
|
|||||||
bool takeTilesFromPool(azool::TileColor color, int& numTiles, bool& poolPenalty);
|
bool takeTilesFromPool(azool::TileColor color, int& numTiles, bool& poolPenalty);
|
||||||
void returnTilesToBag(int numTiles, azool::TileColor color);
|
void returnTilesToBag(int numTiles, azool::TileColor color);
|
||||||
void dealTiles();
|
void dealTiles();
|
||||||
int numFactories() { return tileFactories.size(); }
|
int numFactories() {
|
||||||
|
return tileFactories.size();
|
||||||
|
}
|
||||||
bool endOfRound() {
|
bool endOfRound() {
|
||||||
// round ends when the pool and tile factories are empty
|
// round ends when the pool and tile factories are empty
|
||||||
for (int ii = 0; ii < azool::NUMCOLORS; ++ii) {
|
for (int ii = 0; ii < azool::NUMCOLORS; ++ii) {
|
||||||
|
@ -15,10 +15,16 @@ public:
|
|||||||
void placeTiles(int rowIdx, azool::TileColor color, int numTiles);
|
void placeTiles(int rowIdx, azool::TileColor color, int numTiles);
|
||||||
void endRound(bool& fullRow);
|
void endRound(bool& fullRow);
|
||||||
void finalizeScore();
|
void finalizeScore();
|
||||||
int getScore() const { return myScore; }
|
int getScore() const {
|
||||||
|
return myScore;
|
||||||
|
}
|
||||||
std::string printMyBoard() const;
|
std::string printMyBoard() const;
|
||||||
bool tookPenalty() const { return myTookPoolPenaltyThisRound; }
|
bool tookPenalty() const {
|
||||||
const std::string getPlayerName() const { return myName; }
|
return myTookPoolPenaltyThisRound;
|
||||||
|
}
|
||||||
|
const std::string getPlayerName() const {
|
||||||
|
return myName;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Player(const Player&) = delete;
|
Player(const Player&) = delete;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user