Class WeaponAuraManager

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.combatitemscomponents.WeaponAuraManager

public class WeaponAuraManager extends Component
  • Field Details

    • auraApplied

      public Entity auraApplied
  • Constructor Details

    • WeaponAuraManager

      public WeaponAuraManager()
  • Method Details

    • setCombatAnimator

      public void setCombatAnimator(Entity combatAnimator)
      Sets the combat item animator for this actions component
      Parameters:
      combatAnimator - the combat animator entity which has subcomponents PlayerSkillAnimationController and AnimationRenderer
    • update

      public void update()
      Description copied from class: Component
      Called once per frame of the game, and should be used for most component logic. Not called if component is disabled.
      Overrides:
      update in class Component
    • checkAuraEffect

      public void checkAuraEffect()
      Check if the aura is expired, if it is reverts the weapon stats to default and remove the aura.
    • setAura

      public void setAura(Entity aura)
      Sets the given aura to the applied aura
      Parameters:
      aura -
    • setWeaponStats

      public void setWeaponStats(Entity weapon)
      Sets the weapon stats if player is equipped with a weapon
      Parameters:
      weapon -
    • applyAura

      public void applyAura(Entity aura, Entity weapon)
      Applies the given aura to the given weapon.
      Parameters:
      aura - Aura to apply to the weapon
      weapon - Weapon to apply the aura to
    • getAura

      public Entity getAura()
      Returns the aura currently applied to the equipped weapon of the player
      Returns:
      Aura currently applied to the equipped weapon of the player.
    • getWeaponStats

      public WeaponStatsComponent getWeaponStats()