-
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
)¶
Other members:
Inherited from
Object:_serializationBlacklist,adopt(),assertType(),className,deepcopy(),deserialize(),extend(),instanceOf(),is(),isInstance(),mixin(),prettyprint(),serializationBlacklist,serialize()Inherited from
System:afterAction(),afterOpacityChanged(),beforeAction(),beforeMove(),getRequirements(),getSoftRequirements(),initialize(),onActorAdded(),onActorRemoved(),onMove(),onTick(),onTurn(),onTurnEnd(),onYield(),owner,postInitialize(),requirements,softRequirements-
__new(self: