]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/commitdiff
Add max cusp getter
authorJiri Vlasak <jiri.vlasak.2@cvut.cz>
Mon, 1 Nov 2021 12:56:52 +0000 (13:56 +0100)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Mon, 1 Nov 2021 12:56:52 +0000 (13:56 +0100)
incl/pslot.hh
src/pslot.cc

index c1c53110781edae500c42cba56a29935e150d6de..c8962cb2c5d3ff7f4c96c6c037da5c8433aa15f4 100644 (file)
@@ -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. */
index dc09581e583f8cdfde5f7eebedd6b082491c0033..46a12a637cf0ca70d64307b8dd66bb3a24748536 100644 (file)
@@ -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)
 {