Companion object for StaticEntity, providing factory methods for creating instances.
Attributes
- Companion
- enum
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
StaticEntity.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Safely build a Light, reflecting the domain constraints.
Safely build a Light, reflecting the domain constraints.
Value parameters
- attenuation
-
attenuation factor of the light
- intensity
-
intensity of the light
- orient
-
orientation of the light
- pos
-
center position of the light
- radius
-
radius of the light's influence
Attributes
- Returns
-
Right with the created StaticEntity.Light if valid, otherwise Left with a validation error.
Safely build an Obstacle, reflecting the domain constraints.
Safely build an Obstacle, reflecting the domain constraints.
Value parameters
- height
-
height of the obstacle
- orient
-
orientation of the obstacle
- pos
-
center position of the obstacle
- width
-
width of the obstacle
Attributes
- Returns
-
Right with the created StaticEntity.Obstacle if valid, otherwise Left with a validation error.