aboutsummaryrefslogtreecommitdiff
path: root/src/Collectible.cpp
blob: 3bf298c256cfa0de74bedd8d2e0b7a86f313f72f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "Collectible.h"

#include <QSettings>

Collectible::Collectible(QGraphicsItem *parent, QGraphicsScene *scene)
    : Sprite(parent, scene)
{

}

void Collectible::collected()
{
    setData(0, "colllected");
    removeMe();
}

void Collectible::setValue(int value)
{
    m_value = value;
}

int Collectible::getValue() const
{
    return m_value;
}