Package blockly_robot.robot.logic
Class Task
java.lang.Object
blockly_robot.robot.logic.Task
Eine Trainingsaufgabe (Task) besteht aus mehreren (in der Regel 3)
Schwierigkeitsgraden (Difficulty). Ein Schwierigkeitsgrad kann einen oder
mehrere Tests (Level) haben.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the background color.bagInit()intbagSize()Returns the grid color.data()static StringextractTaskPath(String path) booleanintro()level()Returns the first version of a training task with the easiest difficultylevel(int difficulty) Retrieves the level based on the given difficulty.level(Difficulty difficulty) Returns the level associated with the given difficulty.level(Difficulty difficulty, int test) Retrieves the level for a given difficulty and test.levels()Returns a map of difficulty levels and their corresponding list of levels.static TaskloadByTaskPath(String taskPath) intmaxCols()Die Anzahl der Kacheln einer Spalte, des Tests (Level) mit der größten horizontalen Ausdehnung.intintDie Anzahl der Tests des Schwierigkeitsgrads mit den meisten Tests.intmaxRows()Die Anzahl der Kacheln einer Zeile, des Tests (Level) mit der größten vertikalen Ausdehnung.intintDie Anzahl an Schwierigkeitsgraden (In der Regel 3).intDie Anzahl aller Tests (Level).taskPath()title()Returns the virtual robot of the first version of a training task with the easiest difficulty. / Gibt einen virtuellen Roboter der erste Version einer Trainingsaufgabe mit dem leichtesten Schwierigkeitsgrad zurück.
-
Constructor Details
-
Task
-
-
Method Details
-
loadByTaskPath
- Parameters:
taskPath- Der relative Pfad zu resources/data/tasks
-
extractTaskPath
-
taskPath
-
data
-
title
-
intro
-
itemCreator
-
borderColor
Returns the grid color.- Returns:
- the grid color as a String.
-
backgroundColor
Returns the background color.- Returns:
- the background color as a String.
-
bagSize
-
maxFallAltitude
-
nbPlatforms
-
levels
Returns a map of difficulty levels and their corresponding list of levels.- Returns:
- the map of difficulty levels and their corresponding list of levels
-
level
Retrieves the level for a given difficulty and test.- Parameters:
difficulty- the difficulty of the tasktest- the test index (0 is the first test)- Returns:
- the level corresponding to the given difficulty and test
-
level
Returns the level associated with the given difficulty.- Parameters:
difficulty- the difficulty of the task- Returns:
- the level associated with the difficulty
-
level
Retrieves the level based on the given difficulty.- Parameters:
difficulty- the difficulty level as an integer (0 is easy, 1 is medium, 2 is hard)- Returns:
- the corresponding level
-
level
Returns the first version of a training task with the easiest difficulty. / Gibt die erste Version einer Trainingsaufgabe mit dem leichtesten Schwierigkeitsgrad zurück. -
levelCollection
-
contextData
-
virtualRobot
Returns the virtual robot of the first version of a training task with the easiest difficulty. / Gibt einen virtuellen Roboter der erste Version einer Trainingsaufgabe mit dem leichtesten Schwierigkeitsgrad zurück. -
maxCols
Die Anzahl der Kacheln einer Spalte, des Tests (Level) mit der größten horizontalen Ausdehnung. -
maxRows
Die Anzahl der Kacheln einer Zeile, des Tests (Level) mit der größten vertikalen Ausdehnung. -
numberOfDifficulties
Die Anzahl an Schwierigkeitsgraden (In der Regel 3). -
maxLevelsPerDifficulty
Die Anzahl der Tests des Schwierigkeitsgrads mit den meisten Tests. -
numberOfLevels
Die Anzahl aller Tests (Level). -
hasGravity
public boolean hasGravity() -
autoWithdraw
-
bagInit
-