package net.sector.level; import java.util.ArrayList; import java.util.Collections; import net.sector.network.levels.NetLevelList; public class LevelRegistry { /** Levels connected to Global Leaderboard IN POTENTIA */ public static NetLevelList netLevels_inPotentia = new NetLevelList(); /** Levels from resources, built-in IN POTENTIA */ public static ArrayList internalLevels_inPotentia = new ArrayList(); /** Levels from user's folder IN POTENTIA */ public static ArrayList localLevels_inPotentia = new ArrayList(); /** Levels connected to Global Leaderboard */ public static ArrayList netLevels = new ArrayList(); /** Levels from resources, built-in */ public static ArrayList internalLevels = new ArrayList(); /** Levels from user's folder */ public static ArrayList localLevels = new ArrayList(); /** * Get list with all level types. * * @return list of level bundles. */ public static ArrayList getAllLevels() { ArrayList list = new ArrayList(); list.addAll(localLevels); list.addAll(internalLevels); list.addAll(netLevels); Collections.sort(list); return list; } }