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) get(int row, int col) intgetCols()Anzahl an Spalten (x-Richtung bzw.getLevel()getRobot()intgetRows()Anzahl an Reihen (y-Richtung bzw.getTask()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)
-
Constructor Details
-
Context
-
-
Method Details
-
getItemCreator
-
getRows
public int getRows()Anzahl an Reihen (y-Richtung bzw. Höhe) -
getCols
public int getCols()Anzahl an Spalten (x-Richtung bzw. Breite) -
getRobot
-
getTask
-
getLevel
-
getBagPacker
-
getPlatformBuilder
-
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)
-