Class LookAbility
java.lang.Object
com.codename1.gaming.platformer.Ability
com.codename1.gaming.platformer.LookAbility
Looking up and down: holding up, or down, while standing still for
delayTicks
sets a look direction that a camera pans by (see getLook()).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLook()The look direction: -1 up, 1 down, 0 neither.longhashState(long h) Mixes the ability's own state into a hash, so two runs that diverge inside an ability are caught.voidprocess(Actor c, PlatformWorld world) Sets velocity and claims aMovementState.voidreset()Forgets what the ability was in the middle of, when its actor respawns: a dash, a buffered jump or a grip does not outlive a death.Methods inherited from class Ability
earlyProcess, isEnabled, lateProcess, mix, setEnabled
-
Field Details
-
delayTicks
public int delayTicksTicks of holding before the camera pans.
-
-
Constructor Details
-
LookAbility
public LookAbility()
-
-
Method Details