CSCI3081W Drone Delivery System
Helicopter.h
1 #ifndef Helicopter_H_
2 #define Helicopter_H_
3 
4 #include "IEntity.h"
5 #include "IStrategy.h"
6 
12 class Helicopter : public IEntity {
13  public:
18  Helicopter(const JsonObject& obj);
19 
24 
29  void update(double dt);
30 
31  private:
32  IStrategy* movement = nullptr;
33  double distanceTraveled = 0;
34  unsigned int mileCounter = 0;
35  Vector3 lastPosition;
36 };
37 
38 #endif
Represents a helicopter in a physical system. Helicopters move using euler integration based on a spe...
Definition: Helicopter.h:12
void update(double dt)
Updates the helicopter's position.
~Helicopter()
Destructor.
Helicopter(const JsonObject &obj)
Helicopters are created with a name.
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.
a simple class used for vector math, most function are self explanatory
Definition: vector3.h:12