Types¶
EntityID = int
module-attribute
¶
Type alias for entity identifiers.
MovementFn = Callable[['State', 'EntityID', 'Action'], Sequence['Position']]
module-attribute
¶
Function type for computing possible moves for an entity.
ObjectiveFn = Callable[['State', 'EntityID'], bool]
module-attribute
¶
Function type for evaluating whether an entity has met an objective.
EffectLimit
¶
Bases: StrEnum
Types of limits for effect application.
EffectType
¶
Bases: StrEnum
Types of effects that can be applied to entities.