パッケージ mechanics.optimization
クラス ProfileLoader
java.lang.Object
mechanics.optimization.ProfileLoader
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.
-
ネストされたクラスの概要
ネストされたクラス修飾子とタイプクラス説明static classA named sequence of action commands for one character. -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明static List<ProfileLoader.ActionProfile> loadProfiles(String charName) Loads allProfileLoader.ActionProfiles defined forcharName.
-
コンストラクタの詳細
-
ProfileLoader
public ProfileLoader()
-
-
メソッドの詳細
-
loadProfiles
Loads allProfileLoader.ActionProfiles defined forcharName.Reads
profiles/<charName>.txt, parsing blocks delimited byPROFILE: <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; nevernull
-