Class AIBrain.State
java.lang.Object
com.codename1.gaming.platformer.AIBrain.State
- Enclosing class:
AIBrain
A named state: an action and its outgoing transitions.
-
Method Summary
Modifier and TypeMethodDescriptionaddTransition(AIBrain.Decision d, AIBrain.State target) Adds a transition, tried after earlier ones.getName()The state's name.
-
Method Details
-
getName
The state's name.
Returns
the name
-
addTransition
Adds a transition, tried after earlier ones.
Parameters
d: the conditiontarget: the state to switch to
Returns
this state, for chaining
-