-
class Senses:
Component¶ Senses is used by the sense system as the storage for all of the sensory information from the other sense components/systems. It is required for sight. See the SensesSystem for more.
-
cells:
SparseGrid¶ A sparse grid of cells representing the portion of the map the actor’s senses reveal.
-
explored:
SparseGrid¶ A sparse grid of cells the actor’s senses have previously revealed.
-
remembered:
SparseGrid¶ A sparse grid class that stores data using hashed coordinates. Similar to a SparseMap except here there is only one entry per grid coordinate. This is suitable for stuff like Cells.
-
exploredStorage:
table<Level,SparseGrid>¶ Weak-keyed storage of explored cells per level.
-
rememberedStorage:
table<Level,SparseGrid>¶ Weak-keyed storage of remembered cells per level.
-
unknown:
SparseMap<Vector2>¶ Unknown actors are things the player is aware of the location of, but not the components.
-
query(self:
Senses, level:Level, ...:Component):Query¶ Queries the level, but only for actors sensed by the component’s owner.
Other members:
Inherited from
Component:applyDiff(),checkRequirements(),clone(),diff(),getBase(),getRequirements(),owner,requirementsInherited from
Object:_serializationBlacklist,adopt(),assertType(),className,deepcopy(),deserialize(),extend(),instanceOf(),is(),isInstance(),mixin(),prettyprint(),serializationBlacklist,serialize()-
cells: