Interface FigurePointListener


  • public interface FigurePointListener
    Listener interface for figure events.
    • Method Detail

      • pointsChange

        int pointsChange​(Figure f,
                         int pointChange,
                         AnimationInfo animation)
        Called, if the figure gains points during a level. The figures point count has not changed yet, when this method is called. If a value different to pointChange is returned, this value is added instead. If more listeners change the point gain for the figure, the effect is cumulative.
        Parameters:
        f - The figure.
        pointChange - The point change.
        animation - The AnimationInfo.
        Returns:
        Should return the original pointChange for no modification or a modified value.
      • pointSumChanges

        int pointSumChanges​(Figure f,
                            int pointChange)
        Called, if the figures level score is added to its overall score. The figures point sum has not changed yet, when this method is called. If a value different to pointChange is returned, this value is added instead. If more listeners change the point gain for the figure, the effect is cumulative.
        Parameters:
        f - The figure.
        pointChange - The point change.
        Returns:
        Should return the original pointChange for no modification or a modified value.