Untitled
unknown
plain_text
22 days ago
348 B
2
Indexable
Never
#include "Score.h" Score::Score() { reset(); } void Score::reset() { score = 0; highScore = 0; } int Score::getScore() const { return score; } int Score::getHighScore() const { return highScore; } void Score::updateScore(int lines) { score += lines * 100; if (score > highScore) { highScore = score; } }
Leave a Comment