public abstract class Behavior
extends com.jme3.scene.control.AbstractControl
Modifier and Type | Field and Description |
---|---|
protected Agent |
agent
Agent to whom behavior belongs.
|
Constructor and Description |
---|
Behavior(Agent agent)
Constructor for behavior that doesn't have any special spatial during
execution.
|
Behavior(Agent agent,
com.jme3.scene.Spatial spatial)
Constructor for behavior that has spatial during execution.
|
Modifier and Type | Method and Description |
---|---|
protected void |
controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
protected Agent agent
public Behavior(Agent agent)
agent
- to whom behavior belongsBehaviorExceptions.AgentNotIncludedException
- if agent is nullpublic Behavior(Agent agent, com.jme3.scene.Spatial spatial)
agent
- to whom behavior belongsspatial
- which is active during executionBehaviorExceptions.AgentNotIncludedException
- if agent is nullBehavior(com.jme3.ai.agents.Agent)