java.lang.Object
com.example.project.controllers.gameScreens.animations.AnimationWrapper
Direct Known Subclasses:
LevelScoreSequence, TextEmphasisAnimation

public abstract class AnimationWrapper extends Object
Animation wrapper class for our projects animations that get used.
  • Field Details

    • sequentialAnimation

      protected final javafx.animation.SequentialTransition sequentialAnimation
  • Constructor Details

    • AnimationWrapper

      protected AnimationWrapper()
  • Method Details

    • play

      public void play()
      play.
    • setOnFinished

      public void setOnFinished(javafx.event.EventHandler<javafx.event.ActionEvent> handler)
      Set on finished.
      Parameters:
      handler - actions to do.
    • getChildren

      public javafx.collections.ObservableList<javafx.animation.Animation> getChildren()
      returns animations children.
      Returns:
      list of animations.