Class Focus
java.lang.Object
gaiasky.scene.component.Focus
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Field Summary
FieldsModifier and TypeFieldDescriptionFunctions.Function3<FocusActive, com.badlogic.ashley.core.Entity, Base, Boolean> Consumer that returns whether the focus is active or not.booleanWhether this entity is focusable or not.Consumers.Consumer9<FocusHit, FocusView, Integer, Integer, Integer, Integer, Integer, NaturalCamera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity>> Consumer that computes whether the focus is hit by the given screen coordinates.Consumers.Consumer6<FocusHit, FocusView, Vector3D, Vector3D, NaturalCamera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity>> Consumer that computes whether the focus is hit by a ray. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
focusable
public boolean focusableWhether this entity is focusable or not. If it is not focusable, the entity won't appear in the search results and can't be selected with the mouse. -
activeFunction
public Functions.Function3<FocusActive, com.badlogic.ashley.core.Entity, Base, Boolean> activeFunctionConsumer that returns whether the focus is active or not. -
hitRayConsumer
public Consumers.Consumer6<FocusHit, FocusView, Vector3D, Vector3D, NaturalCamera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity>> hitRayConsumerConsumer that computes whether the focus is hit by a ray. -
hitCoordinatesConsumer
public Consumers.Consumer9<FocusHit, FocusView, Integer, Integer, Integer, Integer, Integer, NaturalCamera, com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity>> hitCoordinatesConsumerConsumer that computes whether the focus is hit by the given screen coordinates.
-
-
Constructor Details
-
Focus
public Focus()
-
-
Method Details
-
setFocusable
-