Class PerformanceLogger

java.lang.Object
mekhq.campaign.log.PerformanceLogger

public class PerformanceLogger extends Object
This class is responsible to control the logging of Service Log Entries.
  • Constructor Details

    • PerformanceLogger

      public PerformanceLogger()
  • Method Details

    • improvedSkill

      @Deprecated(since="0.50.07", forRemoval=true) public static void improvedSkill(Campaign campaign, Person person, LocalDate date, String skill, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • improvedSkill

      public static void improvedSkill(boolean isLogSkillGain, Person person, LocalDate date, String skill, int value)
      Logs a skill improvement event for a specified person if skill gain logging is enabled. This method records the event details including the skill improved, its value, and the date of the improvement.
      Parameters:
      isLogSkillGain - a boolean indicating whether skill gain logging is enabled
      person - the Person object representing the individual gaining the skill
      date - the LocalDate of the skill improvement
      skill - a String representing the name of the skill that was improved
      value - an int representing the value of the improvement to the skill
    • gainedSPA

      public static void gainedSPA(Campaign campaign, Person person, LocalDate date, String spa)
    • gainedEdge

      public static void gainedEdge(Campaign campaign, Person person, LocalDate date)
    • changedEdge

      public static void changedEdge(Campaign campaign, Person person, LocalDate date)