Skip to content

MissileState beta ​

Interface of @v12-engine/engine

ts
export interface MissileState

What an ability sent on its way, like a tornado

Members ​

ability ​

ts
ability: string;

The id of the ability that sent it

arc ​

ts
arc?: number;

How high above the ground its arc carries it now, for what is thrown in one (EffectFields.arc)

effect ​

ts
effect?: number;

Which effect of the ability it is, by its place there (effectIndex): what the screen draws it with (AbilityLook.effects). Left out for one not written in the ability

forming ​

ts
forming?: number;

How far it is with taking shape, 0..1, while it has not set off yet

heading ​

ts
heading: number;

The way it is heading, in radians

id ​

ts
id: number;

The missile's id

level ​

ts
level: number;

The level of the ability when it was sent

progress ​

ts
progress?: number;

How much of its way it has come, 0..1, for the ones that go a known way

radius ​

ts
radius: number;

How far from its centre it hits things, in world units

returning ​

ts
returning?: boolean;

On its way back to the caster (EffectFields.returns): what is drawn of it may face the way it went out

source ​

ts
source?: number;

Entity that sent it, when that one is known to the player

steered ​

ts
steered?: boolean;

Its owner turns it as it flies (EffectFields.steer): told to its side alone, whose screen steers it (the steer command)

x ​

ts
x: number;

Where it is, east-west, in world units

z ​

ts
z: number;

Where it is, north-south, in world units