-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflag.h
More file actions
47 lines (32 loc) · 734 Bytes
/
flag.h
File metadata and controls
47 lines (32 loc) · 734 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 FLAG_H
#define FLAG_H
#include "cuboid.h"
#include "player.h"
#include "team.h"
#define FLAG_WIDTH 50
#define FLAG_HEIGHT 50
#define FLAG_LENGTH 50
class Team;
class Flag : public Cuboid
{
Q_OBJECT
public:
Flag(float initialPosX, float initialPosY, float initialPosZ, int initialCube, Team * team, QObject *parent = 0);
bool hasBeenMoved();
void respawn();
Player * getOwner();
void setOwner(Player * p);
Team * getTeam();
void setPosX(float posX);
void setPosY(float posY);
void setPosZ(float posZ);
private:
bool moved;
float initialPosX;
float initialPosY;
float initialPosZ;
int initialCube;
Player * owner;
Team * team;
};
#endif // FLAG_H