io.github.srs.model.environment

Members list

Type members

Classlikes

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.

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

Attributes

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

Represents the environment in which entities exist.

Represents the environment in which entities exist.

The environment is defined by its width and height, which are used to constrain the movement and positioning of entities within it.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Environment

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Extensions

Extensions

extension (env: Environment)
def lights: List[Light]

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]

A list of static entities in the environment.

A list of static entities in the environment.

Attributes

Returns

A list of robots

Exports

Defined exports