Skip to content

AreaState beta ​

Interface of @v12-engine/engine

ts
export interface AreaState

An 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 ​

ts
ability: string;

The ability whose it is

angle ​

ts
angle?: number;

Of a cone and an arc: how wide it opens, in radians

effect ​

ts
effect?: number;

Which effect of the ability it is (the zone, the after), by its place there (effectIndex)

follows ​

ts
follows?: number;

The unit a zone goes with (follow)

heading ​

ts
heading: number;

The way it faces, radians as a unit's facing

id ​

ts
id?: number;

A zone's id, the same as long as it lasts. None for a delayed blast

impact ​

ts
impact?: string;

The name a delayed blast's arrival goes by (impact)

kind ​

ts
kind: 'zone' | 'delayed';

A zone (zone), or effects that wait to go off there (after): delayed

left ​

ts
left: number;

Seconds left: of a zone, until it ends; of a delayed blast, until it goes off

length ​

ts
length?: number;

Of a cone, a line, a rect and a cross: how long it is

level ​

ts
level: number;

The ability's level

ours ​

ts
ours?: boolean;

Of the player's side

radius ​

ts
radius: number;

Of a circle, a ring and an arc: how far out it reaches

shape ​

ts
shape: EffectShape;

Its shape: circle, cone, line, rect, ring, arc or cross (EffectCommon.shape)

source ​

ts
source?: number;

Who cast it, where the player knows them

width ​

ts
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 ​

ts
x: number;

Where it is laid: its middle (circle, ring, rect, cross), or where it goes off from (cone, line, arc)

z ​

ts
z: number;

Where it is laid along z