Colliding-Mice / score.h
score.h
Raw
#ifndef SCORE_H
#define SCORE_H

#include <QGraphicsTextItem>
#include <QGraphicsItem>
#include <QFont>



class Score: public QGraphicsTextItem, QFont{  //score class inherits from QGraphicsTextItem and QFont
public:
    Score(QGraphicsItem *parent=0);  //score constructor
    void increase();   //function that increases the score
    int getScore();   //function that gets the score
private:
    int score;
};

#endif // SCORE_H