wyvern.kernel.combat.slots
Interface ArmorSlot

All Superinterfaces:
ItemSlot
All Known Implementing Classes:
AbstractArmorSlot

public interface ArmorSlot
extends ItemSlot

This interface is for body parts that can wear a piece of armor.

Every type of armor must go in a "slot" on a body part. Body parts can have multiple slots (e.g. a Hand can have a Glove slot and a Holding slot).

Version:
1.0, Jun 09, 1998
Author:
Steve Yegge

Method Summary
 Armor getArmor()
          Gets the armor currently in the slot.
 java.lang.Class getArmorType()
          Returns the Armor subclass that this part can wear.
 void setArmor(Armor armor)
          Puts the armor in the slot (nuking what was there before).
 
Methods inherited from interface wyvern.kernel.combat.slots.ItemSlot
getItem, getLayer, isEmpty, remove, setLayer
 

Method Detail

getArmorType

public java.lang.Class getArmorType()
Returns the Armor subclass that this part can wear.


getArmor

public Armor getArmor()
Gets the armor currently in the slot.


setArmor

public void setArmor(Armor armor)
Puts the armor in the slot (nuking what was there before).