-
Notifications
You must be signed in to change notification settings - Fork 0
/
niko.h
34 lines (29 loc) · 707 Bytes
/
niko.h
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
26
27
28
29
30
31
32
33
34
#ifndef NIKO_H
#define NIKO_H
#include "abstractpet.h"
#include <QSoundEffect>
class Niko : public AbstractPet
{
Q_OBJECT
public:
Niko(qreal w, qreal h, const QPointF &pos,
const QPixmaps2 &pixs2, QGraphicsScene *scene,
QGraphicsItem *parent = nullptr);
~Niko();
const QString & name() const;
void move();
void doCollide();
void advance(int);
void findTarget();
void yield();
// get the pearl when pressed
void mousePressEvent(QGraphicsSceneMouseEvent *);
protected:
const QString m_name;
bool m_mature;
bool m_harvested;
bool m_gainable;
QSoundEffect * m_openSound;
QSoundEffect * m_closeSound;
};
#endif // NIKO_H