Class Context
java.lang.Object
blockly_robot.robot.logic.context.Context
Sammlung aller wichtigen Objekte die zum Lösen einer Trainingsaufgabenversion
nötig sind.
-
Constructor Summary
ConstructorsConstructorDescriptionContext(int[][] map, ItemCreator itemCreator, VirtualRobot robot, Task task, Level level) -
Method Summary
Modifier and TypeMethodDescriptionbottom(int row, int col) booleancanFall(int row, int col) intcols()Anzahl an Spalten (x-Richtung bzw.get(int row, int col) booleanisInGrid(int row, int col) booleanisObstacle(int row, int col) Überprüfe, ob sich auf einer Kachel ein Gegenstand gefindet, der ein Hindernis darstellt.booleanisObstacle(Coords coords) level()robot()introws()Anzahl an Reihen (y-Richtung bzw.task()
-
Constructor Details
-
Context
-
-
Method Details
-
itemCreator
-
rows
Anzahl an Reihen (y-Richtung bzw. Höhe) -
cols
Anzahl an Spalten (x-Richtung bzw. Breite) -
robot
-
task
-
level
-
bagPacker
-
platformBuilder
-
get
-
bottom
-
isObstacle
public boolean isObstacle(int row, int col) Überprüfe, ob sich auf einer Kachel ein Gegenstand gefindet, der ein Hindernis darstellt. -
isInGrid
public boolean isInGrid(int row, int col) - See Also:
-
canFall
public boolean canFall(int row, int col)
-