jurpe.containers
Class Lootables

java.lang.Object
  extended by jurpe.containers.Lootables
All Implemented Interfaces:
java.io.Serializable

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

This class holds references to items or money hidden in the dungeon. These are lootables

Author:
asaltar
See Also:
Serialized Form

Constructor Summary
Lootables(Level dungeonLevel)
          Constructor
 
Method Summary
 DungeonItem getItemIn(RpgMapPoint p)
          Get the item at the specified position
 java.util.AbstractList<PlaceHolder> getPlaceHolders()
          Get monsters placeholder
 void initialize(Dungeons dungeon)
          Generate new set of dungeon items, that is money or other items that can be found in the dungeon.
 void removeItemIn(RpgMapPoint p)
          Remove the item at the specified position
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lootables

public Lootables(Level dungeonLevel)
Constructor

Parameters:
dungeonLevel - Level Level of the dungeon
Method Detail

getPlaceHolders

public java.util.AbstractList<PlaceHolder> getPlaceHolders()
Get monsters placeholder

Returns:
AbstractList

removeItemIn

public void removeItemIn(RpgMapPoint p)
Remove the item at the specified position

Parameters:
p -

getItemIn

public DungeonItem getItemIn(RpgMapPoint p)
Get the item at the specified position

Parameters:
p - RpgMapPoint in which DungeonItem is supposed to be
Returns:
A dungeon item if found, else null

initialize

public void initialize(Dungeons dungeon)
                throws JurpeException
Generate new set of dungeon items, that is money or other items that can be found in the dungeon.

Parameters:
dungeon - Handle to dungeons
Throws:
JurpeException

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