パッケージ model.entity
クラス Enemy
java.lang.Object
model.entity.Enemy
Represents an enemy target in the combat simulation.
Tracks the enemy's level, per-element resistances, and the live elemental
aura state used by ReactionResult and
CombatSimulator to resolve elemental reactions.
Constructed with KQM-standard 10 % resistance across all elements for reproducible benchmark comparisons.
-
コンストラクタの概要
コンストラクタコンストラクタ説明Enemy(int level) Creates an enemy at the given level with KQM-standard 10 % resistance applied to all eight elements. -
メソッドの概要
修飾子とタイプメソッド説明Returns the set of all elements currently applied as an aura on this enemy.Returns a snapshot copy of the full aura gauge map (element -> units).doublegetAuraUnits(Element element) Returns the remaining gauge units for the given element, or0.0if no aura of that element is currently applied.intgetLevel()Returns the enemy's level, used in the DEF multiplier formula.Returns the primary active aura element.doubleReturns the resistance value for the given element type.voidreduceAura(Element element, double decay) Reduces the gauge of the given element bydecayunits.voidSets the elemental aura gauge for the given element tounits.voidSets the resistance value for the given element type.
-
コンストラクタの詳細
-
Enemy
public Enemy(int level) Creates an enemy at the given level with KQM-standard 10 % resistance applied to all eight elements.- パラメータ:
level- enemy level used in the DEF multiplier formula
-
-
メソッドの詳細
-
setAura
Sets the elemental aura gauge for the given element tounits. Ifunitsis zero or negative the aura is removed entirely.- パラメータ:
element- element whose aura gauge to setunits- gauge units to assign (must be positive to register an aura)
-
reduceAura
Reduces the gauge of the given element bydecayunits. If the gauge drops to zero or below the element's aura is removed.- パラメータ:
element- element whose gauge to reducedecay- amount to subtract from the current gauge
-
getAuraUnits
Returns the remaining gauge units for the given element, or0.0if no aura of that element is currently applied.- パラメータ:
element- element to query- 戻り値:
- remaining aura gauge units
-
getPrimaryAura
Returns the primary active aura element. If bothElement.HYDROandElement.ELECTROare simultaneously present (Electro-Charged state),HYDROis returned as the nominal primary. Returnsnullwhen no aura is active.- 戻り値:
- primary aura element, or
nullif the enemy has no aura
-
getActiveAuras
Returns the set of all elements currently applied as an aura on this enemy.- 戻り値:
- snapshot set of active aura elements
-
getAuraMap
Returns a snapshot copy of the full aura gauge map (element -> units).- 戻り値:
- copy of the aura gauge map
-
setRes
Sets the resistance value for the given element type. Uses theStatTypeDMG_BONUS key as the resistance map key (e.g.StatType.PYRO_DMG_BONUSfor Pyro resistance).- パラメータ:
elementType- theStatTypeDMG_BONUS key representing the elementvalue- resistance value as a decimal (e.g.0.10for 10 %)
-
getRes
Returns the resistance value for the given element type. Defaults to 10 % (0.10) if the element has no explicit entry.- パラメータ:
elementType- theStatTypeDMG_BONUS key for the element- 戻り値:
- resistance as a decimal
-
getLevel
public int getLevel()Returns the enemy's level, used in the DEF multiplier formula.- 戻り値:
- enemy level
-