class SightSystem: System

The Sight System manages the sight of actors. It is responsible for updating the FOV of actors, and keeping track of which actors are visible to each other.

__new(self: Object, ...: any)

The default constructor for the class. Subclasses should override this.

onSenses(self: SightSystem, level: Level, actor: Actor)

These functions update the fov and visibility of actors on the level.

updateSeenActors(self: SightSystem, level: Level, actor: Actor)
staticmethod computeFOV(
    level: Level,
    sensesComponent: Senses,
    origin: Vector2,
    maxDepth: integer
)