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.
@FunctionalInterface public interface CollisionFlagOverride
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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description intapply(int original, int x, int y)Applies this override to the given operands.static CollisionFlagOverrideidentity()
-
-
-
Method Detail
-
identity
static CollisionFlagOverride 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
-
-