donjuan.edge

Module Contents

Classes

Edge

An edge sits between two `Cell`s.

class donjuan.edge.Edge(cell1: Optional[Cell] = None, cell2: Optional[Cell] = None, has_door: bool = False)[source]

An edge sits between two `Cell`s.

Parameters
  • cell1 (Optional[Cell]) – cell on one side of the edge

  • cell2 (Optional[Cell]) – cell on the other side of the edge

  • has_door (bool, optional) – default False, indicates whether this object has a door

property cell1(self) → Optional[Cell]
property cell2(self) → Optional[Cell]
set_cell1(self, cell: Cell) → None[source]
set_cell2(self, cell: Cell) → None[source]
property is_wall(self) → bool