Interface FigureKillListener

    • Method Detail

      • killedEnemy

        void killedEnemy​(Figure f,
                         Figure enemy,
                         DieReason reason,
                         AnimationInfo animation)
        Called, if the figure kills an enemy
        Parameters:
        f - The killer.
        enemy - The enemy that was killed.
        reason - The death reason.
        animation - The AnimationInfo
      • explodes

        boolean explodes​(Figure f,
                         Thing source,
                         DieReason reason,
                         AnimationInfo animation)
        Called, if the figure is destroyed.
        Parameters:
        f - The figure that was killed.
        source - The source that killed the figure.
        reason - The death reason.
        animation - The AnimationInfo
        Returns:
        true, if destruction is ok, false, if figure survives the explosion.