Class AAvailableSlot<H extends Hook, T extends PieceOfGear>
java.lang.Object
de.rpgframework.genericrpg.modification.ModifyableImpl
de.rpgframework.genericrpg.items.AAvailableSlot<H,T>
- All Implemented Interfaces:
Modifyable
-
Field Summary
FieldsFields inherited from class de.rpgframework.genericrpg.modification.ModifyableImpl
incomingModifications, outgoingModifications -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEmbeddedItem(CarriedItem accessory) voidclear()List<CarriedItem<T>> floatabstract floatabstract HgetHook()Where is the slot attachedabstract floatbooleanremoveEmbeddedItem(CarriedItem accessory) voidsetCapacity(float value) toString()Methods inherited from class de.rpgframework.genericrpg.modification.ModifyableImpl
addIncomingModification, addModifications, addOutgoingModification, clearIncomingModifications, clearOutgoingModifications, getIncomingModifications, getOutgoingModifications, removeIncomingModification, removeIncomingModificationForSource, removeIncomingModifications, setIncomingModifications
-
Field Details
-
capacity
@Attribute protected float capacity -
embedded
-
-
Constructor Details
-
AAvailableSlot
protected AAvailableSlot() -
AAvailableSlot
public AAvailableSlot(float capacity)
-
-
Method Details
-
getAllEmbeddedItems
-
toString
-
addEmbeddedItem
- Parameters:
accessory- the accessory to set
-
removeEmbeddedItem
-
getHook
-
getCapacity
public float getCapacity() -
setCapacity
public void setCapacity(float value) -
getUsedCapacity
public abstract float getUsedCapacity() -
getFreeCapacity
public abstract float getFreeCapacity() -
clear
public void clear()
-