java.lang.Object
games.stendhal.server.maps.quests.revivalweeks.SokobanGame
All Implemented Interfaces:
SokobanListener, LoadableContent

public class SokobanGame extends Object implements LoadableContent, SokobanListener
A Sokoban game.
Author:
hendrik
  • 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 interface LoadableContent
    • removeFromWorld

      public boolean removeFromWorld()
      try to remove the content from the world-
      Specified by:
      removeFromWorld in interface LoadableContent
      Returns:
      true
    • onSuccess

      public void onSuccess(String playerName, int level)
      Description copied from interface: SokobanListener
      level was completed successfully
      Specified by:
      onSuccess in interface SokobanListener
      Parameters:
      playerName - name of player
      level - completed level
    • onTimeout

      public void onTimeout(String playerName, int level)
      Description copied from interface: SokobanListener
      level timed out
      Specified by:
      onTimeout in interface SokobanListener
      Parameters:
      playerName - name of player
      level - failed level
    • onLeave

      public void onLeave(String playerName, int level)
      Description copied from interface: SokobanListener
      player wants to leave
      Specified by:
      onLeave in interface SokobanListener
      Parameters:
      playerName - name of player
      level - failed level