Java Universal Role Playing Engine Version 0.3.9

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

See Also:
Serialized Form

Constructor Summary
Lootables(Level dungeonLevel)
          Constructor
 
Method Summary
 void addMandatoryItem(AbstractItem itemToAdd, PlaceholderType type)
          Ad the given item to a dungeon level
 java.util.AbstractList<DungeonItem> getDungeonItems()
          The dungeon items
 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

getDungeonItems

public java.util.AbstractList<DungeonItem> getDungeonItems()
The dungeon items

Returns:
the dungeon items

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

addMandatoryItem

public void addMandatoryItem(AbstractItem itemToAdd,
                             PlaceholderType type)
Ad the given item to a dungeon level

Parameters:
itemToAdd - Item to add
type - Placeholder type for the item

Java Universal Role Playing Engine Version 0.3.9

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