-
Notifications
You must be signed in to change notification settings - Fork 1
/
SimulatorObj.h
46 lines (29 loc) · 1.01 KB
/
SimulatorObj.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
#ifndef GAMESIMULATOR_SIMULATOROBJ_H
#define GAMESIMULATOR_SIMULATOROBJ_H
#include <utility>
#include <vector>
#include "Geometry.h"
#include "cmath"
#include <climits>
#include <memory>
class Model;
/**
* The base object of the Vehicles and Warehouse objects in this program.
* was no need to implement the big 5.
* **/
class SimulatorObj{
private:
string _name;
Point _location;
string _type;
public:
void setLocation(const Point &location);
public:
SimulatorObj(string& name,const Point& location,string &type): _name(name), _location(location), _type(type){};
// returns the type of the simulator object.
string getType(){return _type;};
Point* getLoc(); // returns the location of the object.
virtual const string &getName() const; // returns the name of the object.
void printLoc(){_location.print();}; // prints the location of the object.
};
#endif //GAMESIMULATOR_SIMULATOROBJ_H