Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public class FlyAbility

  1. Object
  2. Ability
  3. FlyAbility
Free flight with no gravity, steered on both axes, for bats, ghosts and drones (and a debug camera hero).

Fields

public int speedFlying speed, fixed point per tick.
public int accelerationChange of speed per tick.

Constructors

public FlyAbility()

Methods

public void process(Actor c, PlatformWorld world)Sets velocity and claims a MovementState.

Inherited methods

Field details

speed

public int speed
Flying speed, fixed point per tick.

acceleration

public int acceleration
Change of speed per tick.

Constructor details

FlyAbility

public FlyAbility()

Method details

process

public void process(Actor c, PlatformWorld world)
Sets velocity and claims a MovementState.

Parameters

c Actor
the actor
world PlatformWorld
the world