Class NoLoginAreaBehaviour
java.lang.Object
games.stendhal.server.entity.mapstuff.area.NoLoginAreaBehaviour
- All Implemented Interfaces:
LoginListener,AreaBehaviour
prevents logging in inside the specified area
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionNoLoginAreaBehaviour(int newX, int newY, String message) Create a nologin area. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToWorld(AreaEntity parentAreaEntity) activates the behaviour by adding it to an area entityvoidonLoggedIn(Player player) Is called after a player logged into the game.voidsets the area entityvoidsetTargetPosition(int x, int y) sets the target position to which players are moved
-
Constructor Details
-
NoLoginAreaBehaviour
Create a nologin area.- Parameters:
newX- x position to place the player atnewY- y position to place the player atmessage- The message to send to the user when repositioned.
-
-
Method Details
-
addToWorld
Description copied from interface:AreaBehaviouractivates the behaviour by adding it to an area entity- Specified by:
addToWorldin interfaceAreaBehaviour- Parameters:
parentAreaEntity- area entity
-
removeFromWorld
public void removeFromWorld()Description copied from interface:AreaBehavioursets the area entity- Specified by:
removeFromWorldin interfaceAreaBehaviour
-
onLoggedIn
Description copied from interface:LoginListenerIs called after a player logged into the game.- Specified by:
onLoggedInin interfaceLoginListener- 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-coordinatey- y-coordiante
-