1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // Created by logicp on 4/22/17.
- //
- #ifndef DRONE_DRONE_H
- #define DRONE_DRONE_H
- class drone {
- public:
- drone();
- drone(int payload);
- int explore(int time);
- 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
|