drone.h 510 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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();
  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. }
  18. private:
  19. int distance_travelled;
  20. int payload;
  21. bool active;
  22. float heading;
  23. float geolocation[2];
  24. };
  25. #endif //DRONE_DRONE_H