jurpe.dungeon.rpgmap
Class DungeonItem

java.lang.Object
  extended by jurpe.dungeon.rpgmap.DungeonItem
All Implemented Interfaces:
java.io.Serializable

public class DungeonItem
extends java.lang.Object
implements java.io.Serializable

A dungeon item is a BasicItem displayable in the dungeon.

See Also:
Serialized Form

Constructor Summary
DungeonItem(BasicItem item, PlaceHolder holder)
          A dungeon item is the composition of a Basic Item with its representation on a RpgMap, which is the PlaceHolder
 
Method Summary
 BasicItem item()
          Basic Item type
 PlaceHolder placeHolder()
          Return the representation of item in the RpgMap
 java.lang.String toString()
          To String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DungeonItem

public DungeonItem(BasicItem item,
                   PlaceHolder holder)
A dungeon item is the composition of a Basic Item with its representation on a RpgMap, which is the PlaceHolder

Parameters:
item - Item
holder - Representation of item in the RpgMap
Method Detail

placeHolder

public PlaceHolder placeHolder()
Return the representation of item in the RpgMap

Returns:
Representation of item in the RpgMap

item

public BasicItem item()
Basic Item type

Returns:
The basic item of this dungeon item.

toString

public java.lang.String toString()
To String

Overrides:
toString in class java.lang.Object
Returns:
String

Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net