Interface CollisionFlagOverride
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an operation that accepts the original flag and the position and applies a modified flag,
or the original if no modification is needed.
This is a functional interface whose functional method is apply(int, int, int).
-
Method Summary
Modifier and TypeMethodDescriptionint
apply
(int original, int x, int y) Applies this override to the given operands.static CollisionFlagOverride
identity()
-
Method Details
-
identity
-
apply
int apply(int original, int x, int y) Applies this override to the given operands.- Parameters:
original
- - The original flagx
- - The x position relative to the sceney
- - The y position relative to the scene- Returns:
- The override result
-