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.After

  1. Object
  2. AIBrain.After

ImplementsAIBrain.Decision

Holds after a number of ticks in the current state.

Constructors

public After(int ticks)A timer.

Methods

public boolean decide(AIBrain brain, Actor self, PlatformWorld world)Whether the transition should fire.

Inherited methods

Constructor details

After

public After(int ticks)
A timer.

Parameters

ticks int
the time in the state

Method details

decide

public boolean decide(AIBrain brain, Actor self, PlatformWorld world)
Whether the transition should fire.

Parameters

brain AIBrain
the brain
self Actor
the actor
world PlatformWorld
the world

Returns

true to switch