Class ItemData

java.lang.Object
blockly_robot.robot.data.model.ItemData
All Implemented Interfaces:
Cloneable

public class ItemData extends Object implements Cloneable
Die Daten eines Gegenstands (Item).

In der JSON-Datei sind die Daten beispielsweise so repräsentiert:


   {
     "row": 2,
     "col": 1,
     "dir": 0,
     "type": "robot"
   }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
     
    boolean
    Found in contextParams.json
    int
    Die Spaltennummer, in der der Gegenstand plaziert ist.
     
    int
     
    int
    0 steht für Osten, 1 steht für Süden, 2 steht für Westen, 3 steht für Norden.
    boolean
    Found in contextParams.json
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    Relativer Pfad zu src/main/resources/images.
    boolean
    Gibt an, ob der Gegenstand eine Kiste darstellt.
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Gibt an, ob der Gegenstand einen Ausgang darstellt.
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Gibt an, ob der Gegenstand einen Laser darstellt.
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Gibt an, ob der Gegenstand ein Hindernis darstellt.
    boolean
    Found in contextParams.json
    boolean
     
    boolean
    Gibt an, ob der Gegenstand einen Wurfkörper darstellt.
    boolean
    Gibt an, ob der Gegenstand eine Kiste darstellt.
    boolean
    Found in contextParams.json
    boolean
    Gibt an, ob der Gegenstand einen Roboter darstellt.
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Found in contextParams.json
    boolean
    Gibt an, ob der Gegenstand eingesammelt werden kann.
    boolean
    Gibt an, ob der Gegenstand eine Tafel darstellt.
    int
     
    int
    Die Nummer (ID) des Gegenstands.
    int
     
    int
     
    int
    Found in contextParams.json
    int
    Die Zeilennummer, in der der Gegenstand plaziert ist.
    int
    Größe in Pixel.
    int
    Found in contextParams.json
    Found in contextParams.json
    Hat meistens den Wert robot.
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • num

      public int num
      Die Nummer (ID) des Gegenstands.
    • row

      public int row
      Die Zeilennummer, in der der Gegenstand plaziert ist.
    • col

      public int col
      Die Spaltennummer, in der der Gegenstand plaziert ist.
    • dir

      public int dir
      0 steht für Osten, 1 steht für Süden, 2 steht für Westen, 3 steht für Norden.
      See Also:
    • type

      public String type
      Hat meistens den Wert robot. Ein eindeutiger Name, der den Gegenstand identifiziert. Zum Beispiel: candle
    • img

      public String img
      Relativer Pfad zu src/main/resources/images. Zum Beispiel: candle/candle.png
    • side

      public int side
      Größe in Pixel.
    • offsetX

      public int offsetX
    • offsetY

      public int offsetY
    • zOrder

      public int zOrder
    • color

      public String color
    • isContainer

      public boolean isContainer
      Gibt an, ob der Gegenstand eine Kiste darstellt.
    • isExit

      public boolean isExit
      Gibt an, ob der Gegenstand einen Ausgang darstellt.
    • isLaser

      public boolean isLaser
      Gibt an, ob der Gegenstand einen Laser darstellt.
    • isObstacle

      public boolean isObstacle
      Gibt an, ob der Gegenstand ein Hindernis darstellt.
    • isPaint

      public boolean isPaint
    • isProjectile

      public boolean isProjectile
      Gibt an, ob der Gegenstand einen Wurfkörper darstellt.
    • isPushable

      public boolean isPushable
      Gibt an, ob der Gegenstand eine Kiste darstellt.
    • isRobot

      public boolean isRobot
      Gibt an, ob der Gegenstand einen Roboter darstellt.
    • isWithdrawable

      public boolean isWithdrawable
      Gibt an, ob der Gegenstand eingesammelt werden kann.
    • autoWithdraw

      public boolean autoWithdraw
    • isWritable

      public boolean isWritable
      Gibt an, ob der Gegenstand eine Tafel darstellt.
    • nbStates

      public int nbStates
    • forwardsLeft

      public boolean forwardsLeft
      Found in contextParams.json
    • forwardsRight

      public boolean forwardsRight
      Found in contextParams.json
    • forwardsTop

      public boolean forwardsTop
      Found in contextParams.json
    • forwardsBottom

      public boolean forwardsBottom
      Found in contextParams.json
    • isRound

      public boolean isRound
      Found in contextParams.json
    • isQuadrille

      public boolean isQuadrille
      Found in contextParams.json
    • isSquare

      public boolean isSquare
      Found in contextParams.json
    • isTriangle

      public boolean isTriangle
      Found in contextParams.json
    • isStriped

      public boolean isStriped
      Found in contextParams.json
    • isDotted

      public boolean isDotted
      Found in contextParams.json
    • isCross

      public boolean isCross
      Found in contextParams.json
    • isStar

      public boolean isStar
      Found in contextParams.json
    • canBeOutside

      public boolean canBeOutside
      Found in contextParams.json
    • fontColor

      public String fontColor
      Found in contextParams.json
    • fontBold

      public boolean fontBold
      Found in contextParams.json
    • isGreen

      public boolean isGreen
      Found in contextParams.json
    • isOpaque

      public boolean isOpaque
      Found in contextParams.json
    • states

      public String[] states
      Found in contextParams.json
    • isLight

      public boolean isLight
      Found in contextParams.json
    • state

      public int state
      Found in contextParams.json
    • isMirror

      public boolean isMirror
      Found in contextParams.json
    • isFake

      public boolean isFake
      Found in contextParams.json
    • isWire

      public boolean isWire
      Found in contextParams.json
    • plugType

      public int plugType
      Found in contextParams.json
    • containerSize

      public int containerSize
  • Constructor Details

    • ItemData

      public ItemData()
  • Method Details