Class ItemCreator

java.lang.Object
blockly_robot.robot.logic.item.ItemCreator

public class ItemCreator extends Object
Ein Speicher für die Daten der Gegenstände (ItemData). Eine Trainingsaufgabe (Task) bedient sich eines Gegenständedatenspeichers (ItemDataStore).
  • Constructor Details

  • Method Details

    • create

      public Item create(int num)
      Creates an item with the given number.
      Parameters:
      num - the number of the item
      Returns:
      the created item
    • create

      public Item create(String type)
      Creates an item with the given name.
      Parameters:
      type - the name of the item
      Returns:
      the created item