上下楼梯测试正常
This commit is contained in:
1 parent
e6dde068d3
commit
ec2004bb36
3 files changed
+12
No files matched your search
@@ -134,6 +134,16 @@ void ParkingLotManager::requestOut(Car *car, int exit)
|
||||
Path *p; // TODO:请求出口
|
||||
}
|
||||
|
||||
void ParkingLotManager::requestStair(Car *car)
|
||||
{
|
||||
int l = car->getFloor();
|
||||
int n = car->getNum();
|
||||
int e = car->getEntryNum();
|
||||
Path *p = m_graph[l]->findPath(NODE_TYPE::stair, e, NODE_TYPE::space, n);
|
||||
car->setPath(p);
|
||||
car->followPath();
|
||||
}
|
||||
|
||||
void ParkingLotManager::requestIn(Car* car)
|
||||
{
|
||||
int entry = car->getEntryNum();
|
||||
|
||||
Reference in new issue
Block a user