#ifndef _BALLOON_H #define _BALLOON_H // class for balloon manipulation using simulated auto pilot // written: 8/29/93 (based on an idea of Dave Reed) // modified: 8/30/94, 12/29/94 // member function explanation: // // Ascend: balloon ascends to height specified by parameter // in a sequence of burns. Each burn raises the // altitude by 10 meters // // Cruise: balloon cruises at current altitude for a number of time // steps specified by parameter. Random wind-shear can cause // balloon to rise and fall, but vents and burns keep the // balloon within +/- 5 meters of the altitude at which cruising // starts // Descend: balloon descends to height specified by parameter in a // sequence of vents. Each vent drops the balloon 10 meters, // or to the ground (if less than 10 meters to the ground) #include "rando.h" class Balloon { public: Balloon(); // constructor // change where balloon is: up, down, or forward void Ascend(int); // ascend so altitude >= parameter void Descend(int); // descend so altitude <= parameter void Cruise(int); // cruise for parameter time-steps private: // private stuff not shown }; #endif // _BALLOON_H defined