Class SkyMilesScorer

java.lang.Object
org.deltava.beans.econ.EliteScorer
org.deltava.beans.econ.SkyMilesScorer

public class SkyMilesScorer extends EliteScorer
A flight scorer for Delta Virtual Airlines. This extends the default implementation by restricting flights to a maximum number of non-ACARS flights per month.
Since:
11.0
Version:
11.4
Author:
Luke
  • Constructor Details

    • SkyMilesScorer

      public SkyMilesScorer()
  • Method Details

    • add

      public void add(FlightReport fr)
      Adds a Flight Report. This will calculate number of non-ACARS flights per month.
      Overrides:
      add in class EliteScorer
      Parameters:
      fr - the FlightReport
    • score

      public FlightEliteScore score(ScorePackage pkg, EliteLevel lvl)
      Description copied from class: EliteScorer
      Scores a Flight Report.
      Specified by:
      score in class EliteScorer
      Parameters:
      pkg - the ScorePackage
      lvl - the Pilot's current EliteLevel
      Returns:
      the number of status points earned
    • score

      public FlightEliteScore score(FlightReport fr, EliteLevel lvl)
      Description copied from class: EliteScorer
      Scores a non-ACARS Flight Report.
      Specified by:
      score in class EliteScorer
      Parameters:
      fr - the FlightReport
      lvl - the Pilot's current EliteLevel
      Returns:
      the number of status points earned