Untitled
#include "Score.h" Score::Score() : score(0), highScore(0) {} void Score::reset() { score = 0; } void Score::addScore(int points) { score += points; } int Score::getScore() const { return score; } int Score::getHighScore() const { return highScore; } void Score::setHighScore(int score) { highScore = score; }
Leave a Comment