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
the slot of the trade center in which all the offered items are stored
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionCreates a new TradeCenterMarketSlot.TradeCenterMarketSlot(String name)
Creates a new TradeCenterMarketSlot. -
Method Summary
Modifier and TypeMethodDescriptiongets the type of the slot ("slot", "ground", "market")boolean
Can this slot contain items?boolean
isReachableForTakingThingsOutOfBy(Entity entity)
Is this slot reachable to take things out of?boolean
isReachableForThrowingThingsIntoBy(Entity entity)
Is this slot reachable to put things into?boolean
does this slot require that the bounding of items is check on adding itemsMethods inherited from class games.stendhal.server.entity.slot.EntitySlot
clearErrorMessage, getContentSlotName, getErrorMessage, setErrorMessage
Methods inherited from class marauroa.common.game.RPSlot
add, add, addPreservingId, clear, clearVisible, clone, equals, get, getCapacity, getFirst, getName, getOwner, has, hasAsAncestor, hasAsAncestor, hashCode, isEmpty, isFull, iterator, readObject, remove, resetAddedAndDeletedRPObjects, setAddedRPObject, setCapacity, setDeletedRPObject, setName, size, toString, writeObject, writeObject, writeToJson
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TradeCenterMarketSlot
public TradeCenterMarketSlot()Creates a new TradeCenterMarketSlot. -
TradeCenterMarketSlot
Creates a new TradeCenterMarketSlot.- Parameters:
name
- name of slot
-
-
Method Details
-
isReachableForTakingThingsOutOfBy
Description copied from interface:Slot
Is this slot reachable to take things out of?- Specified by:
isReachableForTakingThingsOutOfBy
in interfaceSlot
- Overrides:
isReachableForTakingThingsOutOfBy
in classEntitySlot
- Parameters:
entity
- Entity which may be able to reach this slot- Returns:
- true, if it is reachable, false otherwise
-
isReachableForThrowingThingsIntoBy
Description copied from interface:Slot
Is this slot reachable to put things into?- Specified by:
isReachableForThrowingThingsIntoBy
in interfaceSlot
- Overrides:
isReachableForThrowingThingsIntoBy
in classEntitySlot
- 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 interfaceSlot
- Overrides:
isItemSlot
in classEntitySlot
- 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 interfaceSlot
- Overrides:
isTargetBoundCheckRequired
in classEntitySlot
- Returns:
- true, if bound items have to be checked, false otherwise
-
getSlotType
gets the type of the slot ("slot", "ground", "market")- Overrides:
getSlotType
in classEntitySlot
- Returns:
- slot type
-