Class FlyAbility

java.lang.Object
com.codename1.gaming.platformer.Ability
com.codename1.gaming.platformer.FlyAbility

public class FlyAbility extends Ability
Free flight with no gravity, steered on both axes, for bats, ghosts and drones (and a debug camera hero).
  • 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)
      Description copied from class: Ability

      Sets velocity and claims a MovementState.

      Parameters
      • c: the actor
      • world: the world
      Specified by:
      process in class Ability