| Package | Description |
|---|---|
| org.jrebirth.af.api.component.behavior |
Provide interface to support Behavior management into
Component. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Behavior<D extends BehaviorData>
The Interface Behavior is used to define basic methods that each Behavior shall implements.
|
| Modifier and Type | Method and Description |
|---|---|
<BD extends BehaviorData> |
BehavioredComponent.addBehavior(BD data)
Add a behavior to the component by providing a
BehaviorData. |
<BD extends BehaviorData,B extends Behavior<BD>> |
BehavioredComponent.addBehavior(Class<B> behaviorClass)
Add a behavior to the component by providing the
Behavior class. |
<BD extends BehaviorData,B extends Behavior<BD>> |
BehavioredComponent.getBehavior(Class<B> behaviorClass)
Return the
Behavior instance created for the given Behavior type. |
<BD extends BehaviorData,B extends Behavior<BD>> |
BehavioredComponent.getBehaviorData(Class<B> behaviorClass)
Return the
BehaviorData used by the given Behavior type. |
Copyright © 2011–2015 JRebirth OSS. All rights reserved.