From 7b201e2fa3d8a6b7e4f89cf2e642ec5a30b74ecd Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Mon, 1 Nov 2021 13:56:52 +0100 Subject: [PATCH] Add max cusp getter --- incl/pslot.hh | 1 + src/pslot.cc | 6 ++++++ 2 files changed, 7 insertions(+) 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) { -- 2.39.2