Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
335 B
3
Indexable
#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