|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.adventure.entity.AbstractEntity
de.rico.adventure.entity.item.Item
public class Item
This class represents an item in the advenure.
| Constructor Summary | |
|---|---|
Item(AbstractMesh mesh)
Creates a new item with the specified mesh as a model. |
|
| Method Summary | |
|---|---|
boolean |
canBePickedUp()
Determines whethter or not the item can be picked up by a character. |
OverlayImage |
getInventoryImage()
Returns the overlay image object that is used as the item's inventory representation. |
void |
setCanBePickedUp(boolean pickUp)
Sets whethter or not the item can be picked up by a character. |
void |
setInventoryImage(OverlayImage img)
Sets the inventory image of the item to the specified overlay image object |
void |
setInventoryImage(java.lang.String filePath)
Sets the inventory image of the item to the specified image specified by the file path. |
| Methods inherited from class de.rico.adventure.entity.AbstractEntity |
|---|
destroy, drawScreenName, getMesh, getScreenName, getScriptId, isEnabled, setEnabled, setScreenName, setScriptId, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Item(AbstractMesh mesh)
mesh - mesh to use for the item| Method Detail |
|---|
public void setInventoryImage(OverlayImage img)
img - overlay image for item's invetory representationpublic void setInventoryImage(java.lang.String filePath)
filePath - path to image for item's invetory representationpublic OverlayImage getInventoryImage()
public boolean canBePickedUp()
public void setCanBePickedUp(boolean pickUp)
pickUp - can be picked up? --> true=yes, false=no
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||