Untitled

 avatar
unknown
plain_text
10 months ago
261 B
6
Indexable
#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
Editor is loading...
Leave a Comment