Class AIBrain.Both
java.lang.Object
com.codename1.gaming.platformer.AIBrain.Both
- All Implemented Interfaces:
AIBrain.Action
- Enclosing class:
AIBrain
Runs two actions and combines their buttons, such as a patrol that shoots.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintact(AIBrain brain, Actor self, PlatformWorld world) Computes this tick's buttons.
-
Constructor Details
-
Both
A combined action.
Parameters
a: the first actionb: the second action
-
-
Method Details
-
act
Description copied from interface:AIBrain.ActionComputes this tick's buttons.
Parameters
brain: the brain, for its timers and targetself: the actorworld: the world
Returns
Inputbits- Specified by:
actin interfaceAIBrain.Action
-