-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathactor.h
42 lines (38 loc) · 904 Bytes
/
actor.h
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
#ifndef ACTOR_H
#define ACTOR_H
#include <QString>
#include <QVariant>
class Actor
{
public:
Actor();
Actor(QString id, float x, float y, float z,
float vx, float vy, float vz);
Actor(QVariantMap dict);
QString toString();
float getX() const;
float getY() const;
float getZ() const;
float getVx() const;
float getVy() const;
float getVz() const;
QString getId() const;
QString getName();
float getWidth() const;
float getLength() const;
float getHeight() const;
int getCube();
float getDistance(const Actor * self);
//vector getPos() const;
//vector getSight() const;
void update(QVariantMap map);
QString id;
float x, y, z;
int r, g, b;
float vx, vy, vz;
float ratio;
float width, length, height;
int cube;
bool operator ==(const Actor& a) const;
};
#endif // ACTOR_H