mud.common.objects
Class Treasure

java.lang.Object
  extended by mud.common.room.IdObject
      extended by mud.common.objects.GameObject
          extended by mud.common.objects.Treasure

public class Treasure
extends GameObject


Constructor Summary
Treasure(int id, ImageRect image)
           
 
Method Summary
 void contributeTileActions(java.util.Collection<TileAction> c)
           
 void executeTileAction(Creature user, int actionId)
           
 Inventory getInventory()
           
 
Methods inherited from class mud.common.objects.GameObject
dispose, getActivity, getDirection, getImage, getName, getRoom, getTile, getX, getY, setActivity, setDirection, setPos, setRoom, toXml
 
Methods inherited from class mud.common.room.IdObject
getId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Treasure

public Treasure(int id,
                ImageRect image)
Method Detail

contributeTileActions

public void contributeTileActions(java.util.Collection<TileAction> c)
Overrides:
contributeTileActions in class GameObject

executeTileAction

public void executeTileAction(Creature user,
                              int actionId)
Overrides:
executeTileAction in class GameObject

getInventory

public Inventory getInventory()