public interface Entity
Method Summary
| Modifier and Type | Method and Description |
|---|---|
public boolean | hasBehavior(Behaviors behavior) Indicates whether this entity has the specified behavior. |
public void | onAttach(Scene scene) Called when this entity is associated with a scene. |
public void | onDetach(Scene scene) Called when this entity is dissociated with a scene. |
Method Detail
| hasBehavior | ||
|---|---|---|
public boolean hasBehavior(
Behaviors behavior
)Indicates whether this entity has the specified behavior. If it does, it can be cast to the
corresponding interface. Note that the return value can be transient and a fixed return value
for a behavior is not guaranteed by the framework. Parameters:
Returns:
true if this entity has the behavior, false otherwise See Also:
|
| onAttach | ||
|---|---|---|
public void onAttach(
Scene scene
)Called when this entity is associated with a scene. Parameters:
|
| onDetach | ||
|---|---|---|
public void onDetach(
Scene scene
)Called when this entity is dissociated with a scene. Parameters:
|