object GridInventory
- Source
- GridInventory.scala
- Alphabetic
- By Inheritance
- GridInventory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final val StandardScaleSort: (InventoryItem, InventoryItem) => Boolean
The default predicate used by the knapsack sort algorithm.
- def apply(width: Int, height: Int, offset: Int): GridInventory
Overloaded constructor for initializing an inventory of specific dimensions and index offset.
Overloaded constructor for initializing an inventory of specific dimensions and index offset.
- width
the horizontal size of the inventory
- height
the vertical size of the inventory
- offset
the effective index of the first cell in the inventory
- returns
a
GridInventory
object
- def apply(width: Int, height: Int): GridInventory
Overloaded constructor for initializing an inventory of specific dimensions.
Overloaded constructor for initializing an inventory of specific dimensions.
- width
the horizontal size of the inventory
- height
the vertical size of the inventory
- returns
a
GridInventory
object
- def apply(): GridInventory
Overloaded constructor.
Overloaded constructor.
- returns
a
GridInventory
object
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def recoverInventory(list: List[InventoryItem], inv: GridInventory, predicate: (InventoryItem, InventoryItem) => Boolean = StandardScaleSort): (List[InventoryItem], List[Equipment])
Accepting items that may or may not have previously been in an inventory, determine if there is a tight-fit arrangement for the items in the given inventory.
Accepting items that may or may not have previously been in an inventory, determine if there is a tight-fit arrangement for the items in the given inventory. Note that arrangement for future insertion.
- list
a
List
of items to be potentially re-inserted- inv
the inventory in which they would be re-inserted in the future
- predicate
a condition to sort the previous
List
of elements- returns
two
List
s ofEquipment
; the firstList
is composed ofInventoryItemData
s that will be reinserted at the newstart
index; the second list is composed ofEquipment
that will not be put back into the inventory
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toPrintedGrid(inv: GridInventory): String
- def toPrintedList(inv: GridInventory): String
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()