X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/bcar.git/blobdiff_plain/f95b82c5138d576de581be0b3b30b3af74897573..e0672f65c199701c49c4272fbc7da7f9f1c662be:/incl/pslot.hh diff --git a/incl/pslot.hh b/incl/pslot.hh index 85fdb77..b9d4ff5 100644 --- a/incl/pslot.hh +++ b/incl/pslot.hh @@ -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); };