9 #include "PathStrategy.h"
10 #include "math/vector3.h"
99 bool available =
false;
100 bool pickedUp =
false;
Represents a drone in a physical system. Drones move using euler integration based on a specified vel...
Definition: Drone.h:19
bool isPickedUp()
Checks if drone is currently picked up.
Drone & operator=(const Drone &drone)=delete
Removing the assignment operator so that drones cannot be copied.
void setToPackage(IStrategy *s)
Sets the Drone's toPackage strategy to a new one.
Definition: Drone.h:96
Package * getPackage()
Gets pointer to the Drone's package.
Definition: Drone.h:45
void getNextDelivery()
Gets the next delivery in the scheduler.
virtual IStrategy * getToFinalDestinationStrategy()
Getter method for toFinalDestination.
IStrategy * getFinalStrategy()
Returns pointer to toFinalDestination.
Definition: Drone.h:50
void update(double dt)
Updates the drone's position.
virtual IStrategy * getToPackageStrategy()
Getter method for toPackage.
bool getPickedUp()
Gets the pickedUp status of the Drone object.
Definition: Drone.h:40
Drone(const JsonObject &obj)
Drones are created with a name.
bool isAvailable()
Checks if drone is available for a delivery.
Drone(const Drone &drone)=delete
Removing the copy constructor operator so that drones cannot be copied.
Represents an entity in a physical system.
Definition: IEntity.h:22
Strategy interface.
Definition: IStrategy.h:11
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