Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public static final class AIBrain.Shoot
- Object
- AIBrain.Shoot
ImplementsAIBrain.Action
Stands still, facing the player, and fires every
interval ticks.Constructors
public Shoot(int interval) | A turret action. |
Methods
public int act(AIBrain brain, Actor self, PlatformWorld world) | Computes this tick’s buttons. |
Inherited methods
Constructor details
Shoot
public Shoot(int interval)A turret action.
Parameters
intervalint- ticks between shots
Method details
act
public int act(AIBrain brain, Actor self, PlatformWorld world)Computes this tick’s buttons.
Parameters
brainAIBrain- the brain, for its timers and target
selfActor- the actor
worldPlatformWorld- the world
Returns
Input bits