New overrides for easier item manipulation.
This commit is contained in:
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -238,9 +238,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -240,9 +240,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -240,9 +240,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -111,6 +111,15 @@ public final class Armor extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return skill that player get when has equipped armor +4 or more
|
* @return skill that player get when has equipped armor +4 or more
|
||||||
*/
|
*/
|
||||||
|
@@ -140,6 +140,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -283,9 +283,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -211,6 +211,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -237,9 +237,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -238,9 +238,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -240,9 +240,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
@@ -75,4 +75,13 @@ public final class Armor extends Item
|
|||||||
{
|
{
|
||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -92,6 +92,15 @@ public final class EtcItem extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the handler name, null if no handler for item.
|
* @return the handler name, null if no handler for item.
|
||||||
*/
|
*/
|
||||||
|
@@ -240,9 +240,36 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public abstract ItemType getItemType();
|
public abstract ItemType getItemType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an etc item.
|
||||||
|
* @return {@code true} if the item is an etc item, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isEtcItem()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is an armor.
|
||||||
|
* @return {@code true} if the item is an armor, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isArmor()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verifies if the item is a weapon.
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verifies if the item is a magic weapon.
|
* Verifies if the item is a magic weapon.
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean isMagicWeapon()
|
public boolean isMagicWeapon()
|
||||||
{
|
{
|
||||||
|
@@ -121,6 +121,15 @@ public final class Weapon extends Item
|
|||||||
return _type.mask();
|
return _type.mask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the item is a weapon, {@code false} otherwise.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isWeapon()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
* @return {@code true} if the weapon is magic, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user