-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactor.h
More file actions
41 lines (36 loc) · 791 Bytes
/
actor.h
File metadata and controls
41 lines (36 loc) · 791 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
#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();
float getY();
float getZ();
float getVx();
float getVy();
float getVz();
QString getId();
QString getName();
float getWidth();
float getLength();
float getHeight();
int getCube();
void update(QVariantMap map);
void getColor(float* r, float* g, float* b);
QString id;
int r, g, b;
float x, y, z;
float vx, vy, vz;
float ratio;
float width, length, height;
int cube;
bool operator ==(const Actor& a) const;
};
#endif // ACTOR_H