Class TradeCenterMarketSlot

java.lang.Object
marauroa.common.game.RPSlot
games.stendhal.server.entity.slot.EntitySlot
games.stendhal.server.entity.slot.TradeCenterMarketSlot
All Implemented Interfaces:
Slot, Cloneable, Iterable<RPObject>, Serializable

public class TradeCenterMarketSlot extends EntitySlot
the slot of the trade center in which all the offered items are stored
Author:
hendrik
  • Constructor Details

    • TradeCenterMarketSlot

      public TradeCenterMarketSlot()
      Creates a new TradeCenterMarketSlot.
    • TradeCenterMarketSlot

      public TradeCenterMarketSlot(String name)
      Creates a new TradeCenterMarketSlot.
      Parameters:
      name - name of slot
  • Method Details

    • isReachableForTakingThingsOutOfBy

      public boolean isReachableForTakingThingsOutOfBy(Entity entity)
      Description copied from interface: Slot
      Is this slot reachable to take things out of?
      Specified by:
      isReachableForTakingThingsOutOfBy in interface Slot
      Overrides:
      isReachableForTakingThingsOutOfBy in class EntitySlot
      Parameters:
      entity - Entity which may be able to reach this slot
      Returns:
      true, if it is reachable, false otherwise
    • isReachableForThrowingThingsIntoBy

      public boolean isReachableForThrowingThingsIntoBy(Entity entity)
      Description copied from interface: Slot
      Is this slot reachable to put things into?
      Specified by:
      isReachableForThrowingThingsIntoBy in interface Slot
      Overrides:
      isReachableForThrowingThingsIntoBy in class EntitySlot
      Parameters:
      entity - Entity which may be able to reach this slot
      Returns:
      true, if it is reachable, false otherwise
    • isItemSlot

      public boolean isItemSlot()
      Description copied from interface: Slot
      Can this slot contain items?
      Specified by:
      isItemSlot in interface Slot
      Overrides:
      isItemSlot in class EntitySlot
      Returns:
      true, if it can contains items, false otherwise
    • isTargetBoundCheckRequired

      public boolean isTargetBoundCheckRequired()
      Description copied from interface: Slot
      does this slot require that the bounding of items is check on adding items
      Specified by:
      isTargetBoundCheckRequired in interface Slot
      Overrides:
      isTargetBoundCheckRequired in class EntitySlot
      Returns:
      true, if bound items have to be checked, false otherwise
    • getSlotType

      public String getSlotType()
      gets the type of the slot ("slot", "ground", "market")
      Overrides:
      getSlotType in class EntitySlot
      Returns:
      slot type