routing support for excludables (not yet in UI)

This commit is contained in:
Laura Klünder 2016-12-19 21:24:40 +01:00
parent 1e0346a54d
commit 1c10ce443a
4 changed files with 41 additions and 15 deletions

View file

@ -352,7 +352,7 @@ class GraphLevel():
im.save(graph_filename)
# Routing
def build_routers(self, allowed_ctypes):
def build_routers(self, allowed_ctypes, public, nonpublic, avoid, include):
routers = {}
empty_distances = np.empty(shape=(len(self.room_transfer_points),) * 2, dtype=np.float16)
@ -364,7 +364,7 @@ class GraphLevel():
room_transfers[:] = -1
for i, room in enumerate(self.rooms):
router = room.build_router(allowed_ctypes)
router = room.build_router(allowed_ctypes, public, nonpublic, avoid, include)
routers[room] = router
room_distances = empty_distances.copy()