MissileState beta
Interface of @v12-engine/engine
export interface MissileStateWhat an ability sent on its way, like a tornado
Members
ability
ability: string;The id of the ability that sent it
arc
arc?: number;How high above the ground its arc carries it now, for what is thrown in one (EffectFields.arc)
effect
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
forming?: number;How far it is with taking shape, 0..1, while it has not set off yet
heading
heading: number;The way it is heading, in radians
id
id: number;The missile's id
level
level: number;The level of the ability when it was sent
progress
progress?: number;How much of its way it has come, 0..1, for the ones that go a known way
radius
radius: number;How far from its centre it hits things, in world units
returning
returning?: boolean;On its way back to the caster (EffectFields.returns): what is drawn of it may face the way it went out
source
source?: number;Entity that sent it, when that one is known to the player
steered
steered?: boolean;Its owner turns it as it flies (EffectFields.steer): told to its side alone, whose screen steers it (the steer command)
x
x: number;Where it is, east-west, in world units
z
z: number;Where it is, north-south, in world units