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
Free flight with no gravity, steered on both axes, for bats, ghosts and drones
(and a debug camera hero).
Fields
public int speed | Flying speed, fixed point per tick. |
public int acceleration | Change of speed per tick. |
Constructors
public FlyAbility() |
Methods
public void process(Actor c, PlatformWorld world) | Sets velocity and claims a MovementState. |
Inherited methods
From Ability
isEnabled, setEnabled, earlyProcess, reset, lateProcess, hashState, mix
Field details
speed
public int speedFlying speed, fixed point per tick.
acceleration
public int accelerationChange 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
cActor- the actor
worldPlatformWorld- the world