パッケージ model.entity

クラス Enemy

java.lang.Object
model.entity.Enemy

public class Enemy extends Object
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).
    double
    Returns the remaining gauge units for the given element, or 0.0 if no aura of that element is currently applied.
    int
    Returns the enemy's level, used in the DEF multiplier formula.
    Returns the primary active aura element.
    double
    getRes(StatType elementType)
    Returns the resistance value for the given element type.
    void
    reduceAura(Element element, double decay)
    Reduces the gauge of the given element by decay units.
    void
    setAura(Element element, double units)
    Sets the elemental aura gauge for the given element to units.
    void
    setRes(StatType elementType, double value)
    Sets the resistance value for the given element type.

    クラスから継承されたメソッド java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • コンストラクタの詳細

    • 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

      public void setAura(Element element, double units)
      Sets the elemental aura gauge for the given element to units. If units is zero or negative the aura is removed entirely.
      パラメータ:
      element - element whose aura gauge to set
      units - gauge units to assign (must be positive to register an aura)
    • reduceAura

      public void reduceAura(Element element, double decay)
      Reduces the gauge of the given element by decay units. If the gauge drops to zero or below the element's aura is removed.
      パラメータ:
      element - element whose gauge to reduce
      decay - amount to subtract from the current gauge
    • getAuraUnits

      public double getAuraUnits(Element element)
      Returns the remaining gauge units for the given element, or 0.0 if no aura of that element is currently applied.
      パラメータ:
      element - element to query
      戻り値:
      remaining aura gauge units
    • getPrimaryAura

      public Element getPrimaryAura()
      Returns the primary active aura element. If both Element.HYDRO and Element.ELECTRO are simultaneously present (Electro-Charged state), HYDRO is returned as the nominal primary. Returns null when no aura is active.
      戻り値:
      primary aura element, or null if the enemy has no aura
    • getActiveAuras

      public Set<Element> getActiveAuras()
      Returns the set of all elements currently applied as an aura on this enemy.
      戻り値:
      snapshot set of active aura elements
    • getAuraMap

      public Map<Element,Double> getAuraMap()
      Returns a snapshot copy of the full aura gauge map (element -> units).
      戻り値:
      copy of the aura gauge map
    • setRes

      public void setRes(StatType elementType, double value)
      Sets the resistance value for the given element type. Uses the StatType DMG_BONUS key as the resistance map key (e.g. StatType.PYRO_DMG_BONUS for Pyro resistance).
      パラメータ:
      elementType - the StatType DMG_BONUS key representing the element
      value - resistance value as a decimal (e.g. 0.10 for 10 %)
    • getRes

      public double getRes(StatType elementType)
      Returns the resistance value for the given element type. Defaults to 10 % (0.10) if the element has no explicit entry.
      パラメータ:
      elementType - the StatType DMG_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