上下楼梯测试正常

This commit is contained in:
w-mj committed 2017-12-25 11:10:22 +08:00
1 parent e6dde068d3
commit ec2004bb36
3 files changed
+12

No files matched your search

+10
View File
@@ -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();