Class SokobanGame
java.lang.Object
games.stendhal.server.maps.quests.revivalweeks.SokobanGame
- All Implemented Interfaces:
SokobanListener
,LoadableContent
A Sokoban game.
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds the content to the world.void
player wants to leavevoid
level was completed successfullyvoid
level timed outboolean
try to remove the content from the world-
-
Constructor Details
-
SokobanGame
public SokobanGame()
-
-
Method Details
-
addToWorld
public void addToWorld()Description copied from interface:LoadableContent
adds the content to the world.- Specified by:
addToWorld
in interfaceLoadableContent
-
removeFromWorld
public boolean removeFromWorld()try to remove the content from the world-- Specified by:
removeFromWorld
in interfaceLoadableContent
- Returns:
true
-
onSuccess
Description copied from interface:SokobanListener
level was completed successfully- Specified by:
onSuccess
in interfaceSokobanListener
- Parameters:
playerName
- name of playerlevel
- completed level
-
onTimeout
Description copied from interface:SokobanListener
level timed out- Specified by:
onTimeout
in interfaceSokobanListener
- Parameters:
playerName
- name of playerlevel
- failed level
-
onLeave
Description copied from interface:SokobanListener
player wants to leave- Specified by:
onLeave
in interfaceSokobanListener
- Parameters:
playerName
- name of playerlevel
- failed level
-