Runtime¶
StepContext(prev_position=pmap(), prev_status=pmap(), trail=pmap(), damage_hits=pset())
dataclass
¶
Contextual data for the current step.
Attributes:
| Name | Type | Description |
|---|---|---|
prev_position |
PMap[EntityID, Position]
|
Snapshot of positions before movement this step. |
prev_status |
PMap[EntityID, Status]
|
Snapshot of statuses at the beginning of the step. |
trail |
PMap[Position, PSet[EntityID]]
|
Mapping of positions to entities that have occupied them (for trail effects). |
damage_hits |
PSet[tuple[EntityID, EntityID, int]]
|
Set of damage events this turn (target, damager, turn). |