Untitled
unknown
plain_text
a year ago
335 B
9
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;
}Editor is loading...
Leave a Comment