Class AIBrain.Not
java.lang.Object
com.codename1.gaming.platformer.AIBrain.Not
- All Implemented Interfaces:
AIBrain.Decision
- Enclosing class:
AIBrain
Inverts a decision.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandecide(AIBrain brain, Actor self, PlatformWorld world) Whether the transition should fire.
-
Constructor Details
-
Not
An inversion.
Parameters
d: the decision to invert
-
-
Method Details
-
decide
Description copied from interface:AIBrain.DecisionWhether the transition should fire.
Parameters
brain: the brainself: the actorworld: the world
Returns
true to switch
- Specified by:
decidein interfaceAIBrain.Decision
-