-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayer.h
More file actions
32 lines (29 loc) · 688 Bytes
/
player.h
File metadata and controls
32 lines (29 loc) · 688 Bytes
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
#ifndef PLAYER_H
#define PLAYER_H
#include <QObject>
#include <QWidget>
#include <QVector>
#include "gameobject.h"
#include "shot.h"
#include "animated.h"
#include "shooter.h"
#include "physicalobject.h"
#include "routed.h"
class Player : public PhysicalObject, public Shooter
{
public:
explicit Player();
virtual ~Player() override;
void move() final override;
void fire() final override;
void makeFireGun(bool);
bool isFireGun();
void setCurrentRoute(Route::Path route);
int getLives();
QPixmap getPixmap();
void read(const QJsonObject &json) final override;
void write(QJsonObject &json) const final override;
private:
bool fireGun;
};
#endif // PLAYER_H