Class SokobanGame
java.lang.Object
games.stendhal.server.maps.quests.revivalweeks.SokobanGame
- All Implemented Interfaces:
SokobanListener,LoadableContent
A Sokoban game.
- Author:
- hendrik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadds the content to the world.voidplayer wants to leavevoidlevel was completed successfullyvoidlevel timed outbooleantry to remove the content from the world-
-
Constructor Details
-
SokobanGame
public SokobanGame()
-
-
Method Details
-
addToWorld
public void addToWorld()Description copied from interface:LoadableContentadds the content to the world.- Specified by:
addToWorldin interfaceLoadableContent
-
removeFromWorld
public boolean removeFromWorld()try to remove the content from the world-- Specified by:
removeFromWorldin interfaceLoadableContent- Returns:
true
-
onSuccess
Description copied from interface:SokobanListenerlevel was completed successfully- Specified by:
onSuccessin interfaceSokobanListener- Parameters:
playerName- name of playerlevel- completed level
-
onTimeout
Description copied from interface:SokobanListenerlevel timed out- Specified by:
onTimeoutin interfaceSokobanListener- Parameters:
playerName- name of playerlevel- failed level
-
onLeave
Description copied from interface:SokobanListenerplayer wants to leave- Specified by:
onLeavein interfaceSokobanListener- Parameters:
playerName- name of playerlevel- failed level
-