Class DummyWeapon

All Implemented Interfaces:
EquipListener, TurnListener, UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class DummyWeapon extends Item
Weapons that can be given to creatures to adjust their rate of attack, without giving them a visible weapon. These should never be seen as actual items in the game.
  • Constructor Details

    • DummyWeapon

      public DummyWeapon(String name, String clazz, String subclass, Map<String,​String> attributes)
    • DummyWeapon

      public DummyWeapon(Item item)
      Copy constructor.
      Parameters:
      item - copied item
  • Method Details

    • getWeaponType

      public String getWeaponType()
      Description copied from class: Item
      Get a weapon type identifier that can be used in attack events, so that the client can draw an appropriate item image for the attack.
      Overrides:
      getWeaponType in class Item
      Returns:
      weapon identifier