パッケージ mechanics.optimization

クラス ProfileLoader

java.lang.Object
mechanics.optimization.ProfileLoader

public class ProfileLoader extends Object
Loads named action profiles for a character from a plain-text profile file.

Profile files are located at profiles/<CharacterName>.txt. Each file may contain one or more named profiles in the following format:

 PROFILE: BurstCombo
 SKILL
 BURST
 ATTACK_UNTIL_END

 PROFILE: SkillOnly
 SKILL
 ATTACK
 

If no profile file exists for a character, or if the file is empty, loadProfiles(java.lang.String) returns a single default "Default(Skill)" profile containing only the SKILL action.

  • コンストラクタの詳細

    • ProfileLoader

      public ProfileLoader()
  • メソッドの詳細

    • loadProfiles

      public static List<ProfileLoader.ActionProfile> loadProfiles(String charName)
      Loads all ProfileLoader.ActionProfiles defined for charName.

      Reads profiles/<charName>.txt, parsing blocks delimited by PROFILE: <name> headers. Lines that are blank or contain only whitespace are ignored. If the file does not exist or contains no valid profiles, a single fallback profile is returned.

      パラメータ:
      charName - the character name used to locate the profile file
      戻り値:
      a non-empty list of ProfileLoader.ActionProfiles; never null