Scores.h 425 Bytes
Newer Older
Kyle Malaguit's avatar
Kyle Malaguit committed
1 2 3 4 5 6 7 8 9
#ifndef SCORES_H
#define SCORES_H

#include <iostream>
#include <string>
using namespace std;

class Scores{
    public:
Kyle Malaguit's avatar
Kyle Malaguit committed
10
        Scores(string name, int score){
Kyle Malaguit's avatar
Kyle Malaguit committed
11 12 13 14 15 16 17 18
            this-> name = name;
            this-> score = score;
        }
        
        //accessors
        string getName(){return name;}
        int getScore(){return score;}
        
Kyle Malaguit's avatar
Kyle Malaguit committed
19
        
Kyle Malaguit's avatar
Kyle Malaguit committed
20
    private:
Kyle Malaguit's avatar
Kyle Malaguit committed
21
        string name;
Kyle Malaguit's avatar
Kyle Malaguit committed
22 23 24 25
        int score;
};

#endif