Package me.damoebe
Klasse Brick
java.lang.Object
me.damoebe.Brick
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBrick(int rgb) Main constructor of the Brick-classBrick(int rgb, List<BrickColor> availableColors) Limits the possibilities of color variationsConstructor used if the elementID is already calculated.Constructor for variation optimization -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetColor()intgetRgb()voidsetBrick_color(BrickColor brickColor)
-
Konstruktordetails
-
Brick
public Brick(int rgb) Main constructor of the Brick-class- Parameter:
rgb- The rgb value of the pixel-color
-
Brick
Limits the possibilities of color variations- Parameter:
rgb- original pixel coloravailableColors- List of all available colors
-
Brick
Constructor for variation optimization- Parameter:
element_id- ElementID of Brickrgb- original pixel rgb
-
Brick
Constructor used if the elementID is already calculated.- Parameter:
element_id- ElementID of Brick
-
-
Methodendetails
-
getColor
- Gibt zurück:
- Color of the Brick
-
getBrick_color
-
setBrick_color
-
getRgb
public int getRgb()- Gibt zurück:
- original rgb value
-
getElementId
-