Class GroundSlot
java.lang.Object
marauroa.common.game.RPSlot
games.stendhal.server.entity.slot.EntitySlot
games.stendhal.server.entity.slot.GroundSlot
- All Implemented Interfaces:
Slot,Cloneable,Iterable<RPObject>,Serializable
a pseudo slot which represents a location on the ground
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionGroundSlot(StendhalRPZone zone, int x, int y)creates a new GroundSlotGroundSlot(StendhalRPZone zone, Entity item)creates a new GroundSlot with an item. -
Method Summary
Modifier and TypeMethodDescriptiongets the type of the slot ("slot", "ground", "market")booleanisReachableForTakingThingsOutOfBy(Entity entity)Is this slot reachable to take things out of?booleanisReachableForThrowingThingsIntoBy(Entity entity)Is this slot reachable to put things into?Methods inherited from class games.stendhal.server.entity.slot.EntitySlot
clearErrorMessage, getContentSlotName, getErrorMessage, isItemSlot, isTargetBoundCheckRequired, setErrorMessageMethods 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, writeToJsonMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GroundSlot
creates a new GroundSlot- Parameters:
zone- zonex- x-coordinatey- y-coordinate
-
GroundSlot
creates a new GroundSlot with an item.- Parameters:
zone- zoneitem- item on the ground
-
-
Method Details
-
isReachableForTakingThingsOutOfBy
Description copied from interface:SlotIs this slot reachable to take things out of?- Specified by:
isReachableForTakingThingsOutOfByin interfaceSlot- Overrides:
isReachableForTakingThingsOutOfByin 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:SlotIs this slot reachable to put things into?- Specified by:
isReachableForThrowingThingsIntoByin interfaceSlot- Overrides:
isReachableForThrowingThingsIntoByin classEntitySlot- Parameters:
entity- Entity which may be able to reach this slot- Returns:
- true, if it is reachable, false otherwise
-
getSlotType
gets the type of the slot ("slot", "ground", "market")- Overrides:
getSlotTypein classEntitySlot- Returns:
- slot type
-