Skip to content

Commit

Permalink
chore: lint pass
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadien committed Nov 23, 2023
1 parent 53770c1 commit 308d191
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Domain/BTEGui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BTEGui : public ITargetGui {
BTEGui() : targetState(0) {}
#else
std::ostream &out;
BTEGui(std::ostream &out) : targetState(0), out(out) {}
explicit BTEGui(std::ostream &out) : targetState(0), out(out) {}
#endif

void setCurrentPlayer(uint8_t playerId) override;
Expand Down
2 changes: 1 addition & 1 deletion lib/Domain/Game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Game {
uint8_t currentRound;
Player *currentPlayer;

Game(ITargetGui *);
explicit Game(ITargetGui *);

void recordSucceededShoot();

Expand Down
5 changes: 1 addition & 4 deletions lib/Domain/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ void Player::reset() {
totalShoots = 0;
}

void Player::startRound() {
totalShoots += 5;
}
void Player::startRound() { totalShoots += 5; }

void Player::endRound() {
currentRound = 0;
if (currentRound < (ROUND_COUNT - 1)) {
currentRound++;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Domain/Player.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Player {
uint8_t currentRound;
uint8_t totalShoots;

Player(uint8_t id);
explicit Player(uint8_t id);

uint8_t getTotalHitCount() const;

Expand Down

0 comments on commit 308d191

Please sign in to comment.