be.madoka.aardbei.sokoban.logic
Interface SokoLoader

All Known Implementing Classes:
XMLSokoLoader

public interface SokoLoader

Generates Worlds

Author:
Tim Van Wassenhove

Method Summary
 World getWorld(int level)
          Loads the World belonging to the given level.
 boolean hasMoreWorlds()
          Tests if another World is available.
 boolean hasWorld(int level)
          Tests if the requested World is available.
 World nextWorld()
          Loads the next World.
 

Method Detail

hasMoreWorlds

public boolean hasMoreWorlds()
Tests if another World is available.

Returns:
a boolean specifying if at least one more world can be loaded

hasWorld

public boolean hasWorld(int level)
Tests if the requested World is available.

Returns:
a boolean specifying if the requested level is available

nextWorld

public World nextWorld()
Loads the next World.

Returns:
a World

getWorld

public World getWorld(int level)
Loads the World belonging to the given level.

Parameters:
level - the level
Returns:
a World