-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentitydata.h
More file actions
31 lines (25 loc) · 742 Bytes
/
entitydata.h
File metadata and controls
31 lines (25 loc) · 742 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
#ifndef ENTITYDATA_H
#define ENTITYDATA_H
#include <QString>
#include <QMap>
#include <QPointF>
class WorldState;
class EntityData
{
public:
friend class WorldState;
enum class type {airplane, car, motorcycle, ship, helicopter, parachute, tank,
tent, stash, fence, ammoBox, campFire, crashSite, animals,
players, zombies, stuff, hedgehog, invalid};
type entityType;
EntityData();
EntityData(QString n, QPointF c, type t = type::stuff);
QString shortDescription()const;
QString fullDescription()const;
QPointF getCoords() const {return coords;}
private:
QString name;
QPointF coords;
QMap<QString, QString> additionalFields;
};
#endif // ENTITYDATA_H