パッケージ mechanics.energy
列挙クラス ParticleType
- すべての実装されたインタフェース:
Serializable,Comparable<ParticleType>,Constable
Represents the two sizes of elemental energy pickup in Genshin Impact.
Each constant stores two base energy values used by
EnergyManager.distributeParticles(model.type.Element, double, mechanics.energy.ParticleType, simulation.CombatSimulator):
- diffElementValue – energy given to a character whose element does not match the particle's element.
- sameElementValue – energy given to a character whose element matches the particle's element.
Standard base values (before ER scaling and active/off-field multipliers):
| Type | Different Element | Same Element |
|---|---|---|
| PARTICLE | 1.0 | 3.0 |
| ORB | 3.0 | 9.0 |
-
ネストされたクラスの概要
クラスから継承されたネストされたクラス/インタフェース java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
列挙型定数の概要
列挙定数 -
メソッドの概要
修飾子とタイプメソッド説明doublegetValue(boolean sameElement) Returns the base energy value for a character receiving this particle.static ParticleTypeこのクラスの列挙型定数を指定した名前で返します。static ParticleType[]values()この列挙クラスの定数を含む配列を宣言されている順序で 返します。
-
列挙型定数の詳細
-
PARTICLE
A standard elemental particle drop (e.g. from skill hits). -
ORB
A larger elemental orb drop (e.g. from boss kills).
-
-
メソッドの詳細
-
values
この列挙クラスの定数を含む配列を宣言されている順序で 返します。- 戻り値:
- この列挙クラスの定数を宣言されている順序で含む配列
-
valueOf
このクラスの列挙型定数を指定した名前で返します。 文字列は、このクラスの列挙型定数の宣言に使用された識別子と正確に 一致する必要があります。(余分な空白文字は使用 できません。)- パラメータ:
name- 返される列挙型定数の名前。- 戻り値:
- 指定した名前の列挙型定数
- 例外:
IllegalArgumentException- この列挙クラスに、指定した名前の定数がない場合NullPointerException- 引数がnullの場合
-
getValue
public double getValue(boolean sameElement) Returns the base energy value for a character receiving this particle.- パラメータ:
sameElement-trueif the receiving character's element matches the particle's element- 戻り値:
- the base energy value before ER scaling and range multipliers
-