Class PlayerTransformer

java.lang.Object
games.stendhal.server.core.engine.transformer.PlayerTransformer
All Implemented Interfaces:
Transformer

public class PlayerTransformer extends Object implements Transformer
  • Field Details

  • Constructor Details

    • PlayerTransformer

      public PlayerTransformer()
  • Method Details

    • transform

      public RPObject transform(RPObject object)
      Specified by:
      transform in interface Transformer
    • create

      public Player create(RPObject object)
    • convertOldfeaturesList

      public void convertOldfeaturesList(Player player)
    • placePlayerIntoWorldOnLogin

      public static void placePlayerIntoWorldOnLogin(RPObject object, Player player)
      Places the player (and his/her sheep if there is one) into the world on login.
      Parameters:
      object - RPObject representing the player
      player - Player-object
    • placeSheepAndPetIntoWorld

      public static void placeSheepAndPetIntoWorld(Player player)
    • placeAnimalIntoWorld

      protected static boolean placeAnimalIntoWorld(DomesticAnimal animal, Player player)
      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.