|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.haphazard.character.inventory.RelaxedBestFit
| Constructor Summary | |
RelaxedBestFit()
Creates a new instance of RelaxedBestFit |
|
| Method Summary | |
boolean |
add(Item item,
java.util.Vector containers)
Adds an item to a container |
boolean |
canHold(Item item,
java.util.Vector containers)
Checks if the specified containers can hold the specified item |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RelaxedBestFit()
| Method Detail |
public boolean add(Item item,
java.util.Vector containers)
add in interface InventoryAlgorithmitem - The item to addcontainers - The number of containers to use for adding
public boolean canHold(Item item,
java.util.Vector containers)
canHold in interface InventoryAlgorithmitem - The item to holdcontainers - The containers to use to store the item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||