Untitled

mail@pastecode.io avatar
unknown
plain_text
18 days ago
261 B
3
Indexable
Never
#ifndef SCORE_H
#define SCORE_H

class Score {
public:
    Score();
    void reset();
    void addScore(int points);
    int getScore() const;
    int getHighScore() const;
    void setHighScore(int score);

private:
    int score;
    int highScore;
};

#endif
Leave a Comment