-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAgent.h
72 lines (62 loc) · 1.54 KB
/
Agent.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef AGENT_H
#define AGENT_H
#include <vector>
#include <utility> // for pair class
using namespace std;
class Coordinate;
class Agent
{
public:
Agent();
void setXPos( float x );
void setYPos( float y );
void setZPos( float z );
void setTime( float t );
void setStartingXPos( float x );
void setStartingYPos( float y );
void setStartingZPos( float z );
void setStartingTime( float t );
float getStartingXPos();
float getStartingYPos();
float getStartingZPos();
float getStartingTime();
float getXPos();
float getYPos();
float getZPos();
float getTime();
float getPsiAngle();
float getPhiAngle();
float getThetaAngle();
void setPsiAngle(float angle);
void setPhiAngle(float angle);
void setThetaAngle(float angle);
float getRadius();
float getSpeed();
void setSpeed( float s );
void setRadius(float r);
int getID();
void setID( int i );
void returnToStartingPosition();
Coordinate* getCoordinates();
vector<pair<float, float> > getDisplacements(); // All displacements
int red;
int blue;
int green;
protected:
float starting_x;
float starting_y;
float starting_z;
float starting_time;
float x_pos;
float y_pos;
float z_pos;
float time;
float speed; // units?
float psi_angle; // in radians
float phi_angle;
float theta_angle;
float radius;
int id;
vector<Coordinate*> path;
};
#endif // AGENT_H