]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blobdiff - incl/pslot.hh
Add collide method
[hubacji1/bcar.git] / incl / pslot.hh
index 85fdb771f4b3f045a62a0eb6d7f640b49f5519bf..b9d4ff52dda6db1e55fe82312997f08d24ec04bb 100644 (file)
@@ -77,6 +77,9 @@ public:
        /*! Return `true` if car `c` is parking in slot `this`. */
        bool parked(BicycleCar const& c) const;
 
+       /*! Return `true` if `c`'s car frame collide with `this` border. */
+       bool collide(BicycleCar const& c) const;
+
        friend std::ostream& operator<<(std::ostream& o, ParkingSlot const& s);
 };