Class PlayerTransformer
java.lang.Object
games.stendhal.server.core.engine.transformer.PlayerTransformer
- All Implemented Interfaces:
Transformer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertOldfeaturesList(Player player) protected static booleanplaceAnimalIntoWorld(DomesticAnimal animal, Player player) Places a domestic animal in the world.static voidplacePlayerIntoWorldOnLogin(RPObject object, Player player) Places the player (and his/her sheep if there is one) into the world on login.static voidplaceSheepAndPetIntoWorld(Player player)
-
Field Details
-
DEFAULT_ENTRY_ZONE
- See Also:
-
RESET_ENTRY_ZONE
- See Also:
-
-
Constructor Details
-
PlayerTransformer
public PlayerTransformer()
-
-
Method Details
-
transform
- Specified by:
transformin interfaceTransformer
-
create
-
convertOldfeaturesList
-
placePlayerIntoWorldOnLogin
Places the player (and his/her sheep if there is one) into the world on login.- Parameters:
object- RPObject representing the playerplayer- Player-object
-
placeSheepAndPetIntoWorld
-
placeAnimalIntoWorld
Places a domestic animal in the world. If it matches it's owner's zone, then try to keep it's position.- Parameters:
animal- The domestic animal.player- The owner.- Returns:
trueif placed.
-