|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Item | |
|---|---|
| gameaction | |
| gameobjects.characters | |
| inventory | |
| location | |
| path | |
| Uses of Item in gameaction |
|---|
| Constructors in gameaction with parameters of type Item | |
|---|---|
Pick(Player player,
Item item)
A game action that represents picking an item in the game location |
|
Use(AbstractCharacterSprite c,
Hotspot hot,
Item item)
|
|
| Uses of Item in gameobjects.characters |
|---|
| Methods in gameobjects.characters that return Item | |
|---|---|
Item |
Player.getInventItem()
Convenience method for simpler use in beanshell scripts to get the player's currently selected inventory item. |
| Methods in gameobjects.characters with parameters of type Item | |
|---|---|
boolean |
Player.hasItem(Item item)
Convenience method to check if the specified item is contained in the player's inventory |
void |
Player.loseItem(Item item)
Convenience method to remove an item from the player's inventory |
void |
Player.pickItem(Item item)
Takes an item and adds it to the player's inventory while removing it from the game location it was taken from |
boolean |
Player.uses(Item item)
This method checks, if the currently selected inventory item is equal to the specified item. |
| Uses of Item in inventory |
|---|
| Methods in inventory that return Item | |
|---|---|
Item |
Inventory.getSelectedInventoryItem()
Returns the currently selected inventory item. |
| Methods in inventory that return types with arguments of type Item | |
|---|---|
java.util.LinkedList<Item> |
Inventory.getInventoryItems()
Returns a list with the items in the players inventory |
| Methods in inventory with parameters of type Item | |
|---|---|
void |
Inventory.addItemToInventory(Item item)
Adds an item to the inventory |
boolean |
Inventory.hasItem(Item item)
Determines whether the inventory contains the specified item |
void |
Inventory.removeItem(Item item)
Removes an item from the inventory. |
void |
Inventory.setSelectedInventoryItem(Item inventItem)
Sets the currently selected inventory item to the specified item. |
| Uses of Item in location |
|---|
| Methods in location that return types with arguments of type Item | |
|---|---|
java.util.ArrayList<Item> |
GameLocation.getItems()
Return a list with all the items of the game location |
| Methods in location with parameters of type Item | |
|---|---|
void |
GameLocation.addItem(Item item)
Adds an item to the game location |
void |
GameLocation.removeItem(Item item)
Removes an item from the game location, for example if the player picked it up |
| Uses of Item in path |
|---|
| Constructor parameters in path with type arguments of type Item | |
|---|---|
SearchGrid(java.awt.image.BufferedImage imgWalkable,
java.util.ArrayList<Item> items,
java.util.ArrayList<InteractiveHotspot> ihs,
int gridNodeSize)
Creates a new search grid out of the specified walkable area image |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||