Environment

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

Represents an environment with a specific width, height, and a set 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 set 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 set 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 LightField representing the light field of the environment.