Structure change

This commit is contained in:
TinyAtoms
2019-05-28 18:02:52 -03:00
parent 843aa42159
commit 2450e1009b
7 changed files with 0 additions and 0 deletions

20
Park_spot.cpp Normal file
View File

@ -0,0 +1,20 @@
#include "headers/Park_spot.h"
Park_spot::Park_spot(int id_){
parked = nullptr;
id = id_;
taken = false;
}
void Park_spot::clock(Customer* c_customer){
if (!taken){
parked = c_customer;
taken = true;
parked->clock_in(id);
}
else{
taken = false;
parked->clock_out(id);
parked = nullptr;
}
}