-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnvironment.h
More file actions
51 lines (41 loc) · 964 Bytes
/
Environment.h
File metadata and controls
51 lines (41 loc) · 964 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
42
43
44
45
46
47
48
49
50
51
#include <vector>
#include <stack>
#include "Node.h"
#ifndef CABSTATION_ENVIRONMENT_H
#define CABSTATION_ENVIRONMENT_H
using namespace std;
/**
* Environment class.
* an abstract class for world shape.
*/
class Environment {
public:
/**
* constructor for internment.
*/
Environment(){};
/**
* destructor for internment.
*/
virtual ~Environment(){};
/**
* pure virtual function.
* return true if a given node exist in the environment.
* @param node Node*
* @return bool
*/
virtual bool isInEnvironment(Node* node) = 0;
/**
* pure virtual function.
* getting the neighbours of a given node.
* @param node Node*
* @return vector<Node*>
*/
virtual vector<Node*> getNeighbours(Node* node) = 0;
/**
* operator overloading ("<<") for printing.
* @param p Node*
*/
void operator<<(Node* p) const;
};
#endif //CABSTATION_ENVIRONMENT_H