Class PlayerTransformer
java.lang.Object
games.stendhal.server.core.engine.transformer.PlayerTransformer
- All Implemented Interfaces:
Transformer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convertOldfeaturesList(Player player)
protected static boolean
placeAnimalIntoWorld(DomesticAnimal animal, Player player)
Places a domestic animal in the world.static void
placePlayerIntoWorldOnLogin(RPObject object, Player player)
Places the player (and his/her sheep if there is one) into the world on login.static void
placeSheepAndPetIntoWorld(Player player)
-
Field Details
-
DEFAULT_ENTRY_ZONE
- See Also:
- Constant Field Values
-
RESET_ENTRY_ZONE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
PlayerTransformer
public PlayerTransformer()
-
-
Method Details
-
transform
- Specified by:
transform
in 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:
true
if placed.
-