Environment

io.github.srs.model.environment.Environment
final case class Environment(width: Int = ..., height: Int = ..., entities: List[Entity] = ..., _lightMap: Option[LightMap[IO]] = ...) extends EnvironmentParameters

Represents an environment with a specific width, height, and a list of entities.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def lights: List[Light]
Extension method from io.github.srs.model.environment

A list of light entities in the environment.

A list of light entities in the environment.

Attributes

Returns

A list of lights

def robots: List[Robot]
Extension method from io.github.srs.model.environment

A list of static entities in the environment.

A list of static entities in the environment.

Attributes

Returns

A list of robots

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

The light field of the environment, representing the illumination conditions.

The light field of the environment, representing the illumination conditions.

Attributes

Returns

a io.github.srs.model.illumination.model.LightField representing the light field of the environment.