Class AIBrain.Chase
java.lang.Object
com.codename1.gaming.platformer.AIBrain.Chase
- All Implemented Interfaces:
AIBrain.Action
- Enclosing class:
AIBrain
Moves toward the player, jumping at walls if
jumps.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintact(AIBrain brain, Actor self, PlatformWorld world) Computes this tick's buttons.
-
Constructor Details
-
Chase
public Chase(boolean jumps) A chase.
Parameters
jumps: whether to jump when blocked by a wall
-
-
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
-