public class SimpleMainBehaviour extends Behaviour
Behaviour.behaviourNullAgentException| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Behaviour> |
behaviours
Behaviours are implemented as LinkedList for flexibility.
|
protected Game |
game
Instance of game.
|
| Constructor and Description |
|---|
SimpleMainBehaviour(Agent agent)
This behaviour never have spatial.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviour(Behaviour behaviour)
Add behaviour to this main behaviour.
|
void |
clearBehaviours()
Remove all behaviours from this behaviour.
|
protected void |
controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
protected void |
controlUpdate(float tpf) |
void |
removeBehaviour(Behaviour behaviour)
Remove behaviour from this main behaviour.
|
void |
setBehaviours(java.util.List<Behaviour> behaviours)
Set list of bahaviours for this behaviour to do.
|
protected java.util.List<Behaviour> behaviours
ArrayList,
LinkedListprotected Game game
Game#overpublic SimpleMainBehaviour(Agent agent)
agent - protected void controlUpdate(float tpf)
controlUpdate in class com.jme3.scene.control.AbstractControlprotected void controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp)
controlRender in class com.jme3.scene.control.AbstractControlpublic void clearBehaviours()
public void setBehaviours(java.util.List<Behaviour> behaviours)
behaviours - public void addBehaviour(Behaviour behaviour)
behaviour - that will be addedpublic void removeBehaviour(Behaviour behaviour)
behaviour - that will be removed