From: Jiri Vlasak Date: Mon, 1 Nov 2021 12:56:52 +0000 (+0100) Subject: Add max cusp getter X-Git-Tag: v0.7.0^2~1 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/bcar.git/commitdiff_plain/7b201e2fa3d8a6b7e4f89cf2e642ec5a30b74ecd?hp=4ec4f3b9e1607f18fa5f260baeccda9bac083a81 Add max cusp getter --- diff --git a/incl/pslot.hh b/incl/pslot.hh index c1c5311..c8962cb 100644 --- a/incl/pslot.hh +++ b/incl/pslot.hh @@ -104,6 +104,7 @@ public: void set_parking_speed(double s); /*! Maximum allowed number of cusp inside the parking slot. */ + unsigned int get_max_cusp() const; void set_max_cusp(unsigned int m); /*! Angle's increment when creating start positions. */ diff --git a/src/pslot.cc b/src/pslot.cc index dc09581..46a12a6 100644 --- a/src/pslot.cc +++ b/src/pslot.cc @@ -155,6 +155,12 @@ ParkingSlot::set_parking_speed(double s) this->parking_speed_ = s; } +unsigned int +ParkingSlot::get_max_cusp() const +{ + return this->max_cusp_; +} + void ParkingSlot::set_max_cusp(unsigned int m) {