io.github.srs.model.environment
package io.github.srs.model.environment
Members list
Packages
Type members
Classlikes
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.
Represents an environment with a specific width, height, and a set of entities.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait EnvironmentParametersclass Objecttrait Matchableclass AnyShow all
trait EnvironmentParameters
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 Objecttrait Matchableclass Any
- Known subtypes
-
class Environment
object ValidEnvironment
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ValidEnvironment.type
Extensions
Extensions
extension (env: Environment)
A list of light entities in the environment.
A list of light entities in the environment.
Attributes
- Returns
-
A set of lights
Exports
Defined exports
Exported from ValidEnvironment$
In this article