1#include "Library/Area/TrafficArea.h"
2
3namespace al {
4TrafficArea::TrafficArea(const char* name) : AreaObj(name) {}
5
6bool TrafficArea::tryPermitEnterCar() {
7 if (mIsNpcFull || mIsCarUnavailable)
8 return false;
9
10 mIsCarFull = true;
11
12 return true;
13}
14
15bool TrafficArea::tryPermitEnterNpc() {
16 if (mIsCarFull || mIsNpcUnavailable)
17 return false;
18
19 mIsNpcFull = true;
20
21 return true;
22}
23} // namespace al
24