StaticEntity

io.github.srs.model.StaticEntity
See theStaticEntity companion object
enum StaticEntity(val position: Point2D, val orientation: Orientation) extends Entity

Represents a static entity in a two-dimensional space.

A static entity is characterized by its position, orientation, and shape.

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
trait Entity
class Object
trait Matchable
class Any
Show all
Known subtypes
class Obstacle
class Light

Members list

Type members

Enum entries

final case class Light(pos: Point2D, orient: Orientation, radius: Double, intensity: Double, attenuation: Double) extends StaticEntity

The Light represents a light source in the simulation environment.

The Light represents a light source in the simulation environment.

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

final case class Obstacle(pos: Point2D, orient: Orientation, width: Double, height: Double) extends StaticEntity

The Obstacle represents a rectangular obstacle in the simulation environment.

The Obstacle represents a rectangular obstacle in the simulation environment.

Value parameters

height

height of the obstacle

orient

orientation of the obstacle

pos

center position of the obstacle

width

width of the obstacle

Attributes