Interface BattleAnimationTime

All Known Implementing Classes:
MarkerBattleAnimationTime, NoBattleAnimationTime, TickBattleAnimationTime

public interface BattleAnimationTime
Resolves a timeline time value from ticks or named markers.
  • Field Details

  • Method Details

    • tick

      static BattleAnimationTime tick(int tick)
      Creates a fixed tick time.
      Parameters:
      tick - the tick value
      Returns:
      the fixed tick time
    • marker

      static BattleAnimationTime marker(String marker)
      Creates a marker-based time.
      Parameters:
      marker - the marker name to resolve
      Returns:
      the marker time
    • resolve

      int resolve(Map<String,Integer> markers)
      Resolves this time against a marker map.
      Parameters:
      markers - the available timeline markers
      Returns:
      the resolved tick, or -1 for no explicit time