An Item with which the Player can interact.
Each Item has two properties:
obtainableEver to represent different types of Items.
An Item that is
obtainable is also
obtainableEver and is able to be put into the Player’s inventory.
An Item that is not
obtainable, but is
obtainableEver implies that this Item needs to be unlocked in some way to be put into the inventory.
Item(String name, String description)
Creates a new Item with the given
Returns true if this object is able to be put into the Player’s inventory; false otherwise.
Defaut is true;
Returns true if this object can ever be put into the Player’s inventory; false otherwise.
Default is true;
void setObtainable(boolean val)
Set if this item can be obtained by the Player.
void setObtainableEver(boolean val)
Set if this item can EVER be obtained.
void onInvoke(Player p, Map m)
Implemented from InvokableItem.
void onObtain(Player p, Map m)
Implemented from InvokableItem