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
ConstructorDescriptionNoLoginAreaBehaviour(int newX, int newY, String message)
Create a nologin area. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToWorld(AreaEntity parentAreaEntity)
activates the behaviour by adding it to an area entityvoid
onLoggedIn(Player player)
Is called after a player logged into the game.void
sets the area entityvoid
setTargetPosition(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:AreaBehaviour
activates the behaviour by adding it to an area entity- Specified by:
addToWorld
in interfaceAreaBehaviour
- Parameters:
parentAreaEntity
- area entity
-
removeFromWorld
public void removeFromWorld()Description copied from interface:AreaBehaviour
sets the area entity- Specified by:
removeFromWorld
in interfaceAreaBehaviour
-
onLoggedIn
Description copied from interface:LoginListener
Is called after a player logged into the game.- Specified by:
onLoggedIn
in 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
-