A special class of Map which defines all the edges used to restrict perception in a Scene.

Hierarchy

  • Map
    • CanvasEdges

Properties

#outerBounds: Edge[] = []

Edge instances which represent the outer boundaries of the game canvas.

#innerBounds: Edge[] = []

Edge instances which represent the inner boundaries of the scene rectangle.

Methods

  • Initialize all active edges for the Scene. This workflow occurs once only when the Canvas is first initialized. Edges are created from the following sources:

    1. Wall documents
    2. Canvas boundaries (inner and outer bounds)
    3. Darkness sources
    4. Programmatically defined in the "initializeEdges" hook

    Returns void

  • Incrementally refresh Edges by computing intersections between all registered edges.

    Returns void

  • Define Edge instances for outer and inner canvas bounds rectangles.

    Returns void