-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfollower.h
More file actions
47 lines (43 loc) · 970 Bytes
/
follower.h
File metadata and controls
47 lines (43 loc) · 970 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef FOLLOWER_H
#define FOLLOWER_H
#include <QFile>
#include <QByteArray>
#include <QApplication>
#include "player.h"
#include "subtile.h"
#include "followertype.h"
#include "imagelayer.h"
#include "occupationmapper.h"
using namespace std;
class Player;
class Subtile;
class Follower {
private:
Player *parent;
FollowerType type;
Subtile *placement;
Occupation occupation;
OccupationMapper *occupationMapper;
bool playable;
bool pigs;
bool fairy;
ImageLayer *imageLayer;
ImageLayer occupationLayer;
public:
Follower(Player *p, FollowerType t, OccupationMapper *om);
~Follower();
FollowerType getType();
Occupation getOccupation();
Player* getParent();
Subtile* getPlacement();
void setPlacement(Subtile *s);
void setPigs(bool p);
void setFairy(bool f);
void translateSubtileToCoordinates(int subtile, int *x, int *y);
bool isPlayable();
bool hasPigs();
bool hasFairy();
ImageLayer* getImage();
ImageLayer* getOccupationImage();
};
#endif