Class AIBrain.Shoot
java.lang.Object
com.codename1.gaming.platformer.AIBrain.Shoot
- All Implemented Interfaces:
AIBrain.Action
- Enclosing class:
AIBrain
Stands still, facing the player, and fires every
interval ticks.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintact(AIBrain brain, Actor self, PlatformWorld world) Computes this tick's buttons.
-
Constructor Details
-
Shoot
public Shoot(int interval) A turret action.
Parameters
interval: ticks between shots
-
-
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
-