Class WeaponComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.player.WeaponComponent

public class WeaponComponent extends Component
Class to implement weapon functionality in the player, Acts as the central component for weapons being to respond to an enemy attack use an attack factory to generate a weapon entity
  • Constructor Details

    • WeaponComponent

      public WeaponComponent()
  • Method Details

    • create

      public void create()
      Function to Set up "weaponAttack" listener to respond to attacks with a weapon
      Overrides:
      create in class Component