Module entity

Module entity 

Source
Expand description

§Entity System

The Entity type represents any object that can participate in the game world. It encapsulates runtime statistics, temporary bonuses, and metadata, along with information about its lifetime and the nature of its effects.

The design intentionally groups behaviour into two primary components, OverallStats and MetaStats. The entity_type field is a placeholder for future trait-based dispatch - the enum will eventually be replaced by a type-safe system. For the moment it provides a quick lookup for logic that distinguishes creatures, items, terrain, etc.

Modules§

implementations
Implementation of all needed traits for the Entity struct

Structs§

EffectBounds
Limits for the maximum and minimum value that an effect may modify a statistic. The bounds are applied after the effect has been calculated to keep stats within a sane range.
Entity
An entity that can be present in the game world.

Enums§

EffectApplication
How the entity’s effect is applied over time.
EntityDuration
Represents how long an entity remains active in the world.
EntityIdentifier
An identifier that can be supplied on the command line.