wyvern.kernel.combat.slots
Interface WeaponSlot

All Superinterfaces:
ItemSlot
All Known Implementing Classes:
AbstractArmorWeaponSlot, AbstractWeaponSlot

public interface WeaponSlot
extends ItemSlot

This interface is shared by body-parts that can hold a weapon.

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

Method Summary
 Weapon getWeapon()
          Returns the Weapon that this part is holding.
 void setWeapon(Weapon weapon)
          Puts a Weapon in this slot.
 
Methods inherited from interface wyvern.kernel.combat.slots.ItemSlot
getItem, getLayer, isEmpty, remove, setLayer
 

Method Detail

getWeapon

public Weapon getWeapon()
Returns the Weapon that this part is holding.

Returns:
the weapon we're holding, or null if none

setWeapon

public void setWeapon(Weapon weapon)
Puts a Weapon in this slot. Nukes whatever was there before; it's up to the caller to handle the old weapon.

Parameters:
weapon - the Weapon to place in the slot