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).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintapply(int original, int x, int y) Applies this override to the given operands.static CollisionFlagOverrideidentity()static booleanisIdentity(CollisionFlagOverride override)
-
Field Details
-
IDENTITY
-
-
Method Details
-
identity
-
isIdentity
-
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
-