Packages

case class CellBuilder() extends Product with Serializable

Base builder for all type of cell

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CellBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CellBuilder()

Value Members

  1. def buildCellEntity(): CellEntity

    Builds a CellEntity.

    Builds a CellEntity.

    returns

    The CellEntity.

  2. def buildGravityEntity(): GravityCellEntity

    Builds a GravityCellEntity.

    Builds a GravityCellEntity.

    returns

    The GravityCellEntity.

  3. def buildPlayerEntity(): PlayerCellEntity

    Builds a PlayerCellEntity.

    Builds a PlayerCellEntity.

    returns

    The PlayerCellEntity.

  4. def buildSentientEntity(): SentientCellEntity

    Builds a SentientCellEntity.

    Builds a SentientCellEntity.

    returns

    The SentientCellEntity.

  5. def collidable(collidable: Boolean): CellBuilder

    Sets the collidability.

    Sets the collidability.

    collidable

    If the entity can collide or not.

    returns

    The entity builder.

  6. def visible(visible: Boolean): CellBuilder

    Sets the visibility.

    Sets the visibility.

    visible

    If the entity is visible or not.

    returns

    The entity builder.

  7. def withAcceleration(acceleration: AccelerationComponent): CellBuilder

    Sets the acceleration.

    Sets the acceleration.

    acceleration

    The Acceleration component.

    returns

    The entity builder.

  8. def withAcceleration(acceleration: Vector): CellBuilder

    Sets the acceleration.

    Sets the acceleration.

    acceleration

    The acceleration vector.

    returns

    The entity builder.

  9. def withAcceleration(x: Double, y: Double): CellBuilder

    Sets the acceleration.

    Sets the acceleration.

    x

    The acceleration x coordinate.

    y

    The acceleration y coordinate.

    returns

    The entity builder.

  10. def withDimension(dimension: DimensionComponent): CellBuilder

    Sets the dimension.

    Sets the dimension.

    dimension

    The dimension component.

    returns

    The entity builder.

  11. def withDimension(dimension: Double): CellBuilder

    Sets the dimension.

    Sets the dimension.

    dimension

    The radius of the entity.

    returns

    The entity builder.

  12. def withEntityType(entityType: EntityType.Value): CellBuilder

    Sets the entity type.

    Sets the entity type.

    entityType

    The entity type.

    returns

    The entity builder.

  13. def withPosition(position: PositionComponent): CellBuilder

    Sets the position.

    Sets the position.

    position

    The position component.

    returns

    The entity builder.

  14. def withPosition(position: Point): CellBuilder

    Sets the position.

    Sets the position.

    position

    The position point.

    returns

    The entity builder.

  15. def withPosition(x: Double, y: Double): CellBuilder

    Sets the position.

    Sets the position.

    x

    The position x coordinate.

    y

    The position y coordinate.

    returns

    The entity builder.

  16. def withSpawner(spawner: SpawnerComponent): CellBuilder

    Sets the spawner.

    Sets the spawner.

    spawner

    The spawner component.

    returns

    The entity builder.

  17. def withSpawner(canSpawn: Boolean): CellBuilder

    Sets the spawner.

    Sets the spawner.

    canSpawn

    If the entity spawner can spawn or not.

    returns

    The entity builder.

  18. def withSpecificWeight(weight: SpecificWeightComponent): CellBuilder

    Sets the specific weight.

    Sets the specific weight.

    weight

    The specific weight component.

    returns

    The entity builder.

  19. def withSpecificWeight(weight: Double): CellBuilder

    Sets the specific weight.

    Sets the specific weight.

    weight

    The weight.

    returns

    The entity builder.

  20. def withSpeed(speed: SpeedComponent): CellBuilder

    Sets the speed.

    Sets the speed.

    speed

    The speed component.

    returns

    The entity builder.

  21. def withSpeed(speed: Vector): CellBuilder

    Sets the speed.

    Sets the speed.

    speed

    The speed component.

    returns

    The entity builder.

  22. def withSpeed(x: Double, y: Double): CellBuilder

    Sets the speed.

    Sets the speed.

    x

    The speed x coordinate.

    y

    The speed y coordinate.

    returns

    The entity builder.