-
public interface QueryResult of a ray trace, try to retrieve an entity.- Author:
- Grégory Van den Borre
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<be.yildizgames.common.model.EntityId>getEntities(be.yildizgames.common.geometry.Rectangle r)Find all the entities contained in a rectangle facing the camera.Optional<be.yildizgames.common.model.EntityId>getEntity(float x, float y)Find an entity under a screen position.default Optional<be.yildizgames.common.model.EntityId>getEntity(be.yildizgames.module.window.input.MousePosition p)Find an entity under the mouse position.
-
-
-
Method Detail
-
getEntity
default Optional<be.yildizgames.common.model.EntityId> getEntity(be.yildizgames.module.window.input.MousePosition p)
Find an entity under the mouse position.- Parameters:
p- Mouse position.- Returns:
- An optional entity.
-
getEntity
Optional<be.yildizgames.common.model.EntityId> getEntity(float x, float y)
Find an entity under a screen position.- Parameters:
x- Screen x position.y- Screen y position.- Returns:
- An optional entity.
-
getEntities
List<be.yildizgames.common.model.EntityId> getEntities(be.yildizgames.common.geometry.Rectangle r)
Find all the entities contained in a rectangle facing the camera.- Parameters:
r- Recrangle to use.- Returns:
- All the entities in the rectangle.
-
-