-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplace.h
More file actions
47 lines (33 loc) · 985 Bytes
/
place.h
File metadata and controls
47 lines (33 loc) · 985 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 PLACE_H
#define PLACE_H
#include "zombie.h"
#include "plant.h"
#include <QVector>
#include <QString>
class Place
{
public:
Place(int a, double x, double y);//1表示近战路径,2表示远程路径,3表示障碍,4表示我方基地,5表示敌方基地
void add_creature(Creature* crt);
//配合GameState的函数
//判断函数
bool haveplant();
//get/set函数
bool getIs_remote() const;
bool getIs_planthome() const;
Creature *getPlantHere() const;
void setPlantHere(Creature *value);
QString getPway() const;
void setPway(const QString &value);
double getPx() const;
void setPx(double value);
double getPy() const;
void setPy(double value);
bool getIs_melle() const;
private:
QString name, pway;
bool is_melle, is_remote, is_planthome, is_zombiehome, is_obstacle;
Creature* plantHere;
double px, py;
};
#endif // PLACE_H