Package blockly_robot.robot.logic.level
Class LevelCollection
java.lang.Object
blockly_robot.robot.logic.level.LevelCollection
Die Tests (Level) nach Schwierigkeitsgraden geordnet.
Represents a collection of levels categorized by difficulty.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter()filter(Predicate<Difficulty> difficulty) filter(Predicate<Difficulty> difficulty, Predicate<Level> level) getLevel(int difficulty) Retrieves the level with the specified difficulty.getLevel(Difficulty difficulty) Retrieves the level for the specified difficulty.getLevel(Difficulty difficulty, int testIndex) Retrieves the level for the given difficulty and test index.intstatic intgetMaxColsOfList(List<Level> levels) intintint
-
Constructor Details
-
LevelCollection
-
-
Method Details
-
getLevels
-
getNumberOfLevels
public int getNumberOfLevels() -
getMaxRows
public int getMaxRows() -
getMaxCols
public int getMaxCols() -
getNumberOfDifficulties
public int getNumberOfDifficulties() -
getLevel
Retrieves the level for the given difficulty and test index.- Parameters:
difficulty- the difficulty of the leveltestIndex- the test index of the level (0 is the first test)- Returns:
- the level corresponding to the given difficulty and test index
-
getLevel
Retrieves the level for the specified difficulty.- Parameters:
difficulty- the difficulty of the level to retrieve- Returns:
- the level for the specified difficulty
-
getLevel
Retrieves the level with the specified difficulty.- Parameters:
difficulty- the difficulty level of the level to retrieve- Returns:
- the level with the specified difficulty
-
filter
-
filter
-
filter
-
filter
-
filter
-
getMaxColsOfList
-