パッケージ mechanics.element
クラス ICDManager
java.lang.Object
mechanics.element.ICDManager
Tracks Internal Cooldown (ICD) state per character per skill group to
determine whether an elemental hit actually applies an element to the enemy.
Standard ICD rule (Genshin Impact):
- The first hit of a group always applies the element and resets both the timer and the hit counter.
- Subsequent hits in the same group apply the element only if at least 2.5 seconds have elapsed since the last application, or if 3 hits have accumulated since the last application (whichever comes first).
ICD groups are keyed by "<charName>_<ICDTag.name()>" so different
skills on the same character maintain independent cooldowns.
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明booleancheckApplication(String charName, ICDTag tag, ICDType type, double currentTime) Checks whether an elemental hit in the given ICD group should apply the element, and updates the group's state accordingly.
-
コンストラクタの詳細
-
ICDManager
public ICDManager()
-
-
メソッドの詳細
-
checkApplication
Checks whether an elemental hit in the given ICD group should apply the element, and updates the group's state accordingly.Behaviour by
ICDType:ICDType.None– always returnstrue; no state is modified (no ICD).ICDType.Standard– applies the standard 2.5s / 3-hit rule described in the class documentation.
nullvalues fortypeortagare silently defaulted toICDType.StandardandICDTag.Nonerespectively.- パラメータ:
charName- name of the attacking charactertag- ICD group tag identifying the skill/attack categorytype- the ICD rule to applycurrentTime- current simulation time in seconds- 戻り値:
trueif the element should be applied to the enemy,falseotherwise
-