|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.huguesjohnson.tiamat.demos.Camineet.ItemListEntry
ItemListEntry - used to list items in an Area
| Constructor Summary | |
ItemListEntry(int x,
int y,
boolean canTake,
Item item)
Constructor. |
|
| Method Summary | |
boolean |
getCanTake()
Returns true if the item can be taken. |
Item |
getItem()
Returns the Item in this entry. |
int |
getX()
Returns the x-coordinate for the item. |
int |
getY()
Returns the y-coordinate for the item. |
void |
setCanTake(boolean canTake)
Sets whether the item can be taken. |
void |
setItem(Item item)
Sets the Item in this entry. |
void |
setX(int x)
Sets the x-coordinate for the item. |
void |
setY(int y)
Sets the y-coordinate for the item. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ItemListEntry(int x,
int y,
boolean canTake,
Item item)
x - The x-coordinate for the item.y - The y-coordinate for the item.canTake - Whether the item can be taken.item - The Item for this entry.| Method Detail |
public int getX()
public void setX(int x)
x - The x-coordinate for the item.public int getY()
public void setY(int y)
y - The y-coordinate for the item.public boolean getCanTake()
public void setCanTake(boolean canTake)
canTake - The new value.public Item getItem()
public void setItem(Item item)
item - The new item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||