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 interface AIBrain.Decision

Known subtypesAIBrain.After, AIBrain.Chance, AIBrain.HealthAtMost, AIBrain.Not, AIBrain.TargetWithin

A condition that switches state.

Methods

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

Method details

decide

public abstract 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