| Package | Description |
|---|---|
| com.almasb.fxgl.ecs | |
| com.almasb.fxgl.ecs.action | |
| com.almasb.fxgl.effect | |
| com.almasb.fxgl.entity | |
| com.almasb.fxgl.entity.control | |
| com.almasb.fxgl.physics | |
| com.almasb.fxgl.scene |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CopyableControl<T extends Control>
Marks a control as copyable.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Control> |
Entity.getControl(Class<T> type)
Returns control of given type or null if no such type is registered.
|
<T extends Control> |
Entity.getControlOptional(Class<T> type)
Returns control of given type or
Optional.empty() if
no such type is registered on this entity. |
| Modifier and Type | Method and Description |
|---|---|
Array<Control> |
Entity.getControls()
Warning: object allocation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Entity.addControl(Control control)
Adds behavior to entity.
|
default void |
ModuleListener.onAdded(Control control) |
default void |
ModuleListener.onRemoved(Control control) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Entity.hasControl(Class<? extends Control> type) |
boolean |
Entity.removeControl(Class<? extends Control> type) |
| Modifier and Type | Class and Description |
|---|---|
class |
ActionControl<T extends Entity> |
| Modifier and Type | Class and Description |
|---|---|
class |
ParticleControl |
| Modifier and Type | Method and Description |
|---|---|
Entities.GameEntityBuilder |
Entities.GameEntityBuilder.with(Control... controls) |
| Modifier and Type | Class and Description |
|---|---|
class |
CircularMovementControl
Control that moves entity in a circle.
|
class |
ExpireCleanControl
Removes an entity from the world after a certain duration.
|
class |
JSControl
Control that runs scripted entity behavior from a javascript file.
|
class |
KeepOnScreenControl
A control that keeps an entity within the viewport.
|
class |
LiftControl
Lift control.
|
class |
OffscreenCleanControl
Control that removes an entity if it is outside of the visible area of the viewport.
|
class |
ProjectileControl
Generic projectile control.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PhysicsControl
This control updates position and rotation components of entities
based on the physics properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GameScene.onAdded(Control control) |
void |
GameScene.onRemoved(Control control) |
Copyright © 2017. All rights reserved.