AreaState beta
Interface of @v12-engine/engine
export interface AreaStateAn area of an ability on the ground the player is told of (Snapshot.areas): a zone for its life, or a delayed blast until it goes off (a telegraph), with its shape (EffectArea), its place and the seconds left
Members
ability
ability: string;The ability whose it is
angle
angle?: number;Of a cone and an arc: how wide it opens, in radians
effect
effect?: number;Which effect of the ability it is (the zone, the after), by its place there (effectIndex)
follows
follows?: number;The unit a zone goes with (follow)
heading
heading: number;The way it faces, radians as a unit's facing
id
id?: number;A zone's id, the same as long as it lasts. None for a delayed blast
impact
impact?: string;The name a delayed blast's arrival goes by (impact)
kind
kind: 'zone' | 'delayed';A zone (zone), or effects that wait to go off there (after): delayed
left
left: number;Seconds left: of a zone, until it ends; of a delayed blast, until it goes off
length
length?: number;Of a cone, a line, a rect and a cross: how long it is
level
level: number;The ability's level
ours
ours?: boolean;Of the player's side
radius
radius: number;Of a circle, a ring and an arc: how far out it reaches
shape
shape: EffectShape;Its shape: circle, cone, line, rect, ring, arc or cross (EffectCommon.shape)
source
source?: number;Who cast it, where the player knows them
width
width?: number;Of a line, a rect and a cross: how far out on either side; of a ring and an arc, how thick
x
x: number;Where it is laid: its middle (circle, ring, rect, cross), or where it goes off from (cone, line, arc)
z
z: number;Where it is laid along z