Class Melee

java.lang.Object
com.csse3200.game.entities.Melee
All Implemented Interfaces:
Weapon

public class Melee extends Object implements Weapon
Melee is a Weapon which has a minimum range to be used at damage: the damage of the weapon attackRange: the minimum range of the weapon (target must be less than or equal to this distance away) element: the element of the weapon (fire, water, earth, air, etc) castTime: the time it takes to cast the weapon cooldown: the time it takes to be used again
  • Constructor Details

    • Melee

      public Melee(int damage, int attackRange, String Element, int castTime, int cooldown)
  • Method Details

    • getDamage

      public int getDamage()
      Specified by:
      getDamage in interface Weapon
    • getAttackRange

      public int getAttackRange()
      Specified by:
      getAttackRange in interface Weapon
    • getElement

      public String getElement()
    • getCastTime

      public int getCastTime()
    • getCooldown

      public int getCooldown()
    • toString

      public String toString()
      Overrides:
      toString in class Object