Class AIBrain.Hop
java.lang.Object
com.codename1.gaming.platformer.AIBrain.Hop
- All Implemented Interfaces:
AIBrain.Action
- Enclosing class:
AIBrain
Patrols and hops every
interval ticks.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintact(AIBrain brain, Actor self, PlatformWorld world) Computes this tick's buttons.
-
Constructor Details
-
Hop
public Hop(int interval) A hopping patrol.
Parameters
interval: ticks between hops
-
-
Method Details
-
act
Description copied from interface:AIBrain.ActionComputes this tick's buttons.
Parameters
brain: the brain, for its timers and targetself: the actorworld: the world
Returns
Inputbits- Specified by:
actin interfaceAIBrain.Action
-