Skip to content
Snippets Groups Projects
Commit bfda2090 authored by Lenny Siol's avatar Lenny Siol
Browse files

Add: Score class, contains score and name

parent 0f672a2d
No related branches found
No related tags found
1 merge request!12Feature: Scoring system
#include "Score.h"
Score::Score(int currentScore, std::string playerName)
{
this->currentScore = currentScore;
this->playerName = playerName;
}
Score::~Score()
{
//dtor
}
#ifndef SCORE_H
#define SCORE_H
#include <string>
class Score
{
public:
Score(int currentScore, std::string playerName);
virtual ~Score();
int currentScore;
std::string playerName;
};
#endif // SCORE_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment