Class Context

java.lang.Object
blockly_robot.robot.logic.context.Context

public class Context extends Object
Sammlung aller wichtigen Objekte die zum Lösen einer Trainingsaufgabenversion nötig sind.
  • Constructor Details

  • Method Details

    • getItemCreator

      public ItemCreator 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

      public VirtualRobot getRobot()
    • getTask

      public Task getTask()
    • getLevel

      public Level getLevel()
    • getBagPacker

      public BagPacker getBagPacker()
    • getPlatformBuilder

      public PlatformBuilder getPlatformBuilder()
    • get

      public StackedItems get(int row, int col)
    • get

      public StackedItems get(Coords coords)
    • bottom

      public Item bottom(int row, int col)
    • isObstacle

      public boolean isObstacle(int row, int col)
      Überprüfe, ob sich auf einer Kachel ein Gegenstand gefindet, der ein Hindernis darstellt.
    • isObstacle

      public boolean isObstacle(Coords coords)
    • isInGrid

      public boolean isInGrid(int row, int col)
      See Also:
    • canFall

      public boolean canFall(int row, int col)