CSCI3081W Drone Delivery System
Robot.h
1 #ifndef ROBOT_H
2 #define ROBOT_H
3 
4 #include <vector>
5 
6 #include "IEntity.h"
7 #include "math/vector3.h"
8 #include "util/json.h"
9 
10 class Package;
11 
19 class Robot : public IEntity {
20  public:
25  Robot(const JsonObject& obj);
26 
32  void update(double dt);
33 
39  void receive(Package* p);
40 
41  bool requestedDelivery = true;
42 
43  protected:
44  Package* package = nullptr;
45 };
46 
47 #endif // ROBOT_H
Represents an entity in a physical system.
Definition: IEntity.h:22
Manages a picojson::object, works with JsonValue to provide implicit casting.
Represents a package in a physical system. Packages move using euler integration based on a specified...
Definition: Package.h:17
Represents a robot in a physical system.
Definition: Robot.h:19
void update(double dt)
Updates the Package.
void receive(Package *p)
Receives the passed in package.
Robot(const JsonObject &obj)
Constructor.