5 #ifndef CHARGING_STATION_H 6 #define CHARGING_STATION_H 89 std::vector<RechargeDrone*> chargingDrones;
90 std::vector<Carrier*> deadCarriers;
bool AddChargingDrone(RechargeDrone *chargingDrone)
This adds a unique charging drone to the charging station only if the distance between the two is clo...
Definition: charging_station.cc:48
A representation of a ChargingStation, inherited from EntityBase It stores the ChargingStation's name...
Definition: charging_station.h:26
void PopDeadCarrier()
This removes the first dead carrier from a deadCarriers vector. This is due to a recharging drone tha...
Definition: charging_station.cc:38
void Update(float dt)
This is an inherited method from EntityBase to use for DeliverySimulation. This updates the position ...
Definition: charging_station.cc:56
Definition: asubject.cc:3
ChargingStation(const picojson::object &val)
Definition: charging_station.cc:8
A representation of a drone It stores the drone's name, ID, version, position, direction, speed, and dynamic mode.
Definition: recharge_drone.h:38
bool HasDeadCarrier(Carrier *carrier)
This function checks if the charging station has already stored the dead carrier. ...
Definition: charging_station.cc:44
The base class for creating entities.
Definition: entity_base.h:27
A representation of a carrier An abstract base class for delivery transportation clases like Drone or...
Definition: carrier.h:31
void AddDeadCarrier(Carrier *carrier)
This adds a new dead carrier to a deadCarriers vector.
Definition: charging_station.cc:32
void RemoveChargingDrone(RechargeDrone *chargingDrone)
This removes a charging drone from the charging station. This is due to a charging drone leaving the ...