Interface CellBuilder

All Superinterfaces:
Builder<Cell>

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 sprite
    CellBuilder setX​(int x)
    Setter for the value X
    CellBuilder setY​(int y)
    Setter for the value Y

    Methods inherited from interface fr.r1r0r0.deltaengine.model.Builder

    build
  • Method Details

    • setX

      CellBuilder setX​(int x)
      Setter for the value X
      Parameters:
      x - the horizontal coordinate
      Returns:
      the current object
    • setY

      CellBuilder setY​(int y)
      Setter for the value Y
      Parameters:
      y - the vertical coordinate
      Returns:
      the current object
    • setSprite

      CellBuilder setSprite​(Sprite sprite)
      Setter for the sprite
      Parameters:
      sprite - a sprite
      Returns:
      the current object
    • build

      Cell build​(int x, int y)
      A method that build a Cell with the coordinate (x,y)
      Parameters:
      x - the horizontal coordinate
      y - the vertical coordinate
      Returns:
      a Cell