BicycleCar cc_;
BicycleCar gc_;
ParkingSlot ps_;
+
+ // find entry to slot by reverse approach
+ void fe_parallel();
+ void fe_perpendicular();
+ void fer_parallel();
+ void fer_perpendicular();
public:
/*! \brief Return `true` if there is collision.
(parking slot lines).
*/
bool collide();
+ /*! \brief Return parking direction
+
+ Return `true` if the direction of the parking in the
+ slot is forward.
+ */
+ bool forward();
/*! \brief Has current car `cc` left?
Return `true` if the current car `cc` left the parking
slot `ps`;
*/
bool left();
+ /*! \brief Is the goal car `gc` parked?
+
+ Return `true` if the goal car `gc` is inside the
+ parking slot `ps`.
+ */
+ bool parked();
// find entry
/*! \brief Find entry to the parking slot.