123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // Created by logicp on 4/22/17.
- //
- #ifndef DRONE_DRONE_H
- #define DRONE_DRONE_H
- class drone {
- public:
- drone();
- drone(int payload);
- int explore();
- void self_destruct(bool explosives);
- void attack(float heading);
- bool is_on() const {
- return active;
- }
- void set_location(float longitude, float latitude) {
- }
- private:
- int distance_travelled;
- int payload;
- bool active;
- float heading;
- float geolocation[2];
- };
- #endif //DRONE_DRONE_H
|