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 Detail

      • apply

        int apply​(int original,
                  int x,
                  int y)
        Applies this override to the given operands.
        Parameters:
        original - - The original flag
        x - - The x position relative to the scene
        y - - The y position relative to the scene
        Returns:
        The override result