-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathagent.h
42 lines (37 loc) · 1.02 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
#ifndef AGENT_H
#define AGENT_H
#include "node.h"
class Agent
{
private:
int id;
int start_i, start_j;
int goal_i, goal_j;
int cur_i, cur_j;
int subgraph;
public:
Agent(int _start_i = 0, int _start_j = 0, int _goal_i = 0, int _goal_j = 0, int _id = 0) {
start_i = _start_i;
start_j = _start_j;
goal_i = _goal_i;
goal_j = _goal_j;
cur_i = _start_i;
cur_j = _start_j;
id = _id;
subgraph = -1;
}
int getStart_i() const;
int getStart_j() const;
int getGoal_i() const;
int getGoal_j() const;
int getCur_i() const;
int getCur_j() const;
int getId() const;
int getSubgraph() const;
Node getStartPosition() const;
Node getGoalPosition() const;
Node getCurPosition() const;
void setCurPosition(int i, int j);
void setSubgraph(int Subgraph);
};
#endif // AGENT_H