// Stephen Bassoli // CSE 124 Section 1 // Lab 2 #ifndef Ship_H #define Ship_H class Ship { public: Ship(); // Initial Values: Length is 3 // Hits is 0 void ShipThree(); // Input: None // Precond: None // Process: Sets ships length to 3 // Output: None // Postcond: None void ShipFour(); // Input: None // Precond: None // Process: Sets ships length to 4 // Output: None // Postcond: None void ShipFive(); // Input: None // Precond: None // Process: Sets ships length to 5 // Output: None // Postcond: None int ReturnLength(); // Input: None // Precond: None // Process: None // Output: Returns the length of the ship // Postcond: None void Hit(); // Input: None // Precond: None // Process: Adds a hit to the ship // Output: None // Postcond: None bool Sink(); // Input: None // Precond: None // Process: Returns true if the length is equal to the number of hits // Output: Displays the type of ship that was sunk // Postcond: None private: int Length; int Hits; }; #endif