From 1518fbf51a8babe90a909d9c42f53c267ee8642f Mon Sep 17 00:00:00 2001 From: rafa Date: Sat, 24 May 2025 18:48:38 +0100 Subject: [PATCH] add methods to incement and decrement total spots --- code/CarSpotController.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/CarSpotController.cpp b/code/CarSpotController.cpp index 8a31e19..85e919d 100644 --- a/code/CarSpotController.cpp +++ b/code/CarSpotController.cpp @@ -29,6 +29,14 @@ class CarSpotController { this->occupied_spots++; } + void increment_total_spots () { + this->total_spots++; + } + + void decrement_total_spots () { + this->total_spots--; + } + void decrement_occupied_spots () { this->occupied_spots--; }