public class SimpleMainBehavior extends Behavior
| Modifier and Type | Field and Description |
|---|---|
protected MonkeyBrainsAppState |
aiAppState
Instance of aiAppState.
|
protected java.util.List<Behavior> |
behaviors
Behaviors are implemented as LinkedList for flexibility.
|
| Constructor and Description |
|---|
SimpleMainBehavior(Agent agent)
This behavior never have spatial.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBehavior(Behavior behavior)
Add behavior to this main behavior.
|
void |
clearBehaviors()
Remove all behaviors from this behavior.
|
protected void |
controlUpdate(float tpf) |
void |
removeBehavior(Behavior behavior)
Remove behavior from this main behavior.
|
void |
setBehaviors(java.util.List<Behavior> behaviors)
Set list of behaviors for this behavior to do.
|
controlRenderprotected java.util.List<Behavior> behaviors
ArrayList,
LinkedListprotected MonkeyBrainsAppState aiAppState
MonkeyBrainsAppState#inProgresspublic SimpleMainBehavior(Agent agent)
agent - protected void controlUpdate(float tpf)
controlUpdate in class com.jme3.scene.control.AbstractControlpublic void clearBehaviors()
public void setBehaviors(java.util.List<Behavior> behaviors)
behaviors - public void addBehavior(Behavior behavior)
behavior - that will be addedpublic void removeBehavior(Behavior behavior)
behavior - that will be removed