|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Item | |
---|---|
obj |
Uses of Item in obj |
---|
Methods in obj that return Item | |
---|---|
Item |
Room.getItem(java.lang.String itemIdent)
|
Item |
Player.getItem(java.lang.String itemName)
|
Methods in obj that return types with arguments of type Item | |
---|---|
java.util.ArrayList<Item> |
Player.getInventory()
|
java.util.ArrayList<Item> |
Room.getItems()
|
Methods in obj with parameters of type Item | |
---|---|
void |
Room.addItem(Item i)
Adds a single item to the room. |
void |
Player.addToInventory(Item i)
Adds an item to the player's inventory. |
void |
Room.removeItem(Item i)
Removes a single item from the room. |
void |
Room.setItems(Item[] items)
Sets the items that can be found in the room. |
Constructors in obj with parameters of type Item | |
---|---|
Room(java.lang.String name,
java.lang.String desc,
Item item)
Constructor without NPC's, and just one item. |
|
Room(java.lang.String name,
java.lang.String desc,
Item[] items)
Constructor missing npcs. |
|
Room(java.lang.String name,
java.lang.String desc,
Item[] items,
NPC[] npcs)
Full constructor. |
|
Room(java.lang.String name,
java.lang.String desc,
Item item,
NPC npc)
Full constructor, but takes a single item instead of an array, and a single NPC. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |