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) level(int difficulty) Retrieves the level with the specified difficulty.level(Difficulty difficulty) Retrieves the level for the specified difficulty.level(Difficulty difficulty, int testIndex) Retrieves the level for the given difficulty and test index.levels()intmaxCols()static intmaxColsOfList(List<Level> levels) intmaxRows()intint
-
Constructor Details
-
LevelCollection
-
-
Method Details
-
levels
-
numberOfLevels
-
maxRows
-
maxCols
-
numberOfDifficulties
-
level
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
-
level
Retrieves the level for the specified difficulty.- Parameters:
difficulty- the difficulty of the level to retrieve- Returns:
- the level for the specified difficulty
-
level
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
-
maxColsOfList
-