Java Universal Role Playing Engine Version 0.3.9

jurpe.dungeon
Class DungeonItem

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

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

A dungeon item is a AbstractItem displayable in the dungeon.

See Also:
Serialized Form

Constructor Summary
DungeonItem(AbstractItem 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
 Placeholder getPlaceholder()
          Return the representation of item in the RpgMap
 AbstractItem item()
          Basic Item type
 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(AbstractItem 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

getPlaceholder

public Placeholder getPlaceholder()
Return the representation of item in the RpgMap

Specified by:
getPlaceholder in interface IDungeonPawn
Returns:
Representation of item in the RpgMap

item

public AbstractItem 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

Java Universal Role Playing Engine Version 0.3.9

Copyright ? 2010 http://jurpe.sourceforge.net/ All Rights Reserved.