Represent the player's Inventory.
Implemented as a singleton in the session.
package |
inc\Inventory.inc |
---|---|
author |
Alexandre Renoux |
author |
Pierre-Emmanuel Novac |
_addItem(\Item $item) : array
_removeItem( $item)
_useItem( $item)
addItem(\Item $item) : array
addToXML( $root)
created() : boolean
boolean
true if Inventory was already created, false otherwise
get() : \Inventory
removeItem( $item)
sendContent() : array
array
array of Items and number
useItem( $item)
items :