case class CellBuilder() extends Product with Serializable
Base builder for all type of cell
- Alphabetic
- By Inheritance
- CellBuilder
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CellBuilder()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
buildCellEntity(): CellEntity
Builds a CellEntity.
Builds a CellEntity.
- returns
The CellEntity.
-
def
buildGravityEntity(): GravityCellEntity
Builds a GravityCellEntity.
Builds a GravityCellEntity.
- returns
The GravityCellEntity.
-
def
buildPlayerEntity(): PlayerCellEntity
Builds a PlayerCellEntity.
Builds a PlayerCellEntity.
- returns
The PlayerCellEntity.
-
def
buildSentientEntity(): SentientCellEntity
Builds a SentientCellEntity.
Builds a SentientCellEntity.
- returns
The SentientCellEntity.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
collidable(collidable: Boolean): CellBuilder
Sets the collidability.
Sets the collidability.
- collidable
If the entity can collide or not.
- returns
The entity builder.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
visible(visible: Boolean): CellBuilder
Sets the visibility.
Sets the visibility.
- visible
If the entity is visible or not.
- returns
The entity builder.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withAcceleration(acceleration: AccelerationComponent): CellBuilder
Sets the acceleration.
Sets the acceleration.
- acceleration
The Acceleration component.
- returns
The entity builder.
-
def
withAcceleration(acceleration: Vector): CellBuilder
Sets the acceleration.
Sets the acceleration.
- acceleration
The acceleration vector.
- returns
The entity builder.
-
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.
-
def
withDimension(dimension: DimensionComponent): CellBuilder
Sets the dimension.
Sets the dimension.
- dimension
The dimension component.
- returns
The entity builder.
-
def
withDimension(dimension: Double): CellBuilder
Sets the dimension.
Sets the dimension.
- dimension
The radius of the entity.
- returns
The entity builder.
-
def
withEntityType(entityType: EntityType.Value): CellBuilder
Sets the entity type.
Sets the entity type.
- entityType
The entity type.
- returns
The entity builder.
-
def
withPosition(position: PositionComponent): CellBuilder
Sets the position.
Sets the position.
- position
The position component.
- returns
The entity builder.
-
def
withPosition(position: Point): CellBuilder
Sets the position.
Sets the position.
- position
The position point.
- returns
The entity builder.
-
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.
-
def
withSpawner(spawner: SpawnerComponent): CellBuilder
Sets the spawner.
Sets the spawner.
- spawner
The spawner component.
- returns
The entity builder.
-
def
withSpawner(canSpawn: Boolean): CellBuilder
Sets the spawner.
Sets the spawner.
- canSpawn
If the entity spawner can spawn or not.
- returns
The entity builder.
-
def
withSpecificWeight(weight: SpecificWeightComponent): CellBuilder
Sets the specific weight.
Sets the specific weight.
- weight
The specific weight component.
- returns
The entity builder.
-
def
withSpecificWeight(weight: Double): CellBuilder
Sets the specific weight.
Sets the specific weight.
- weight
The weight.
- returns
The entity builder.
-
def
withSpeed(speed: SpeedComponent): CellBuilder
Sets the speed.
Sets the speed.
- speed
The speed component.
- returns
The entity builder.
-
def
withSpeed(speed: Vector): CellBuilder
Sets the speed.
Sets the speed.
- speed
The speed component.
- returns
The entity builder.
-
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.