Class NoLoginAreaBehaviour

java.lang.Object
games.stendhal.server.entity.mapstuff.area.NoLoginAreaBehaviour
All Implemented Interfaces:
LoginListener, AreaBehaviour

public class NoLoginAreaBehaviour extends Object implements LoginListener, AreaBehaviour
prevents logging in inside the specified area
Author:
hendrik
  • Constructor Details

    • NoLoginAreaBehaviour

      public NoLoginAreaBehaviour(int newX, int newY, String message)
      Create a nologin area.
      Parameters:
      newX - x position to place the player at
      newY - y position to place the player at
      message - The message to send to the user when repositioned.
  • Method Details

    • addToWorld

      public void addToWorld(AreaEntity parentAreaEntity)
      Description copied from interface: AreaBehaviour
      activates the behaviour by adding it to an area entity
      Specified by:
      addToWorld in interface AreaBehaviour
      Parameters:
      parentAreaEntity - area entity
    • removeFromWorld

      public void removeFromWorld()
      Description copied from interface: AreaBehaviour
      sets the area entity
      Specified by:
      removeFromWorld in interface AreaBehaviour
    • onLoggedIn

      public void onLoggedIn(Player player)
      Description copied from interface: LoginListener
      Is called after a player logged into the game.
      Specified by:
      onLoggedIn in interface LoginListener
      Parameters:
      player - the player who has logged in
    • setTargetPosition

      public void setTargetPosition(int x, int y)
      sets the target position to which players are moved
      Parameters:
      x - x-coordinate
      y - y-coordiante