Interface CellBuilder
public interface CellBuilder extends Builder<Cell>
An interface used to create object Cell
Can be used like :
- object.setX(x).setY(y).build()
- object.build(x,y)
-
Method Summary
Modifier and Type Method Description Cell
build(int x, int y)
A method that build a Cell with the coordinate (x,y)CellBuilder
setSprite(Sprite sprite)
Setter for the spriteCellBuilder
setX(int x)
Setter for the value XCellBuilder
setY(int y)
Setter for the value Y
-
Method Details
-
setX
Setter for the value X- Parameters:
x
- the horizontal coordinate- Returns:
- the current object
-
setY
Setter for the value Y- Parameters:
y
- the vertical coordinate- Returns:
- the current object
-
setSprite
Setter for the sprite- Parameters:
sprite
- a sprite- Returns:
- the current object
-
build
A method that build a Cell with the coordinate (x,y)- Parameters:
x
- the horizontal coordinatey
- the vertical coordinate- Returns:
- a Cell
-