drone.h 511 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // Created by logicp on 4/22/17.
  3. //
  4. #ifndef DRONE_DRONE_H
  5. #define DRONE_DRONE_H
  6. class drone {
  7. public:
  8. drone();
  9. drone(int payload);
  10. int explore(int time);
  11. void self_destruct(bool explosives);
  12. void attack(float heading);
  13. bool is_on() const {
  14. return active;
  15. }
  16. void set_location(float longitude, float latitude);
  17. private:
  18. int distance_travelled;
  19. int payload;
  20. bool active;
  21. float heading;
  22. float geolocation[2];
  23. };
  24. #endif //DRONE_DRONE_H