Environment

class Object
trait Matchable
class Any

Value members

Abstract methods

The Set of all entities inside the environment and inside structures.

The Set of all entities inside the environment and inside structures.

Returns:

the set of entities.

The number of dead entities in the environment.

The number of dead entities in the environment.

Returns:

the dead entities.

The duration of the simulation.

The duration of the simulation.

Returns:

the duration.

The set of entities inside the environment but external to structures.

The set of entities inside the environment but external to structures.

Returns:

the set of external entities.

def gridSide: Int

The size of the environment grid.

The size of the environment grid.

Returns:

the grid size.

The set of structures inside the environment.

The set of structures inside the environment.

Returns:

the set of structures.

The time of the simulation.

The time of the simulation.

Returns:

the current time.

def update(time: TimeStamp, gridSide: Int, externalEntities: Set[SimulationEntity], structures: Set[SimulationStructure], virus: Virus, environmentDuration: DurationTime, deadEntities: Set[SimulationEntity]): Environment
Value parameters:
deadEntities

the number of dead entities.

environmentDuration

the duration of the simulation.

externalEntities

the set of external entities.

gridSide

the size of the grid.

structures

the set of structures inside the environment.

time

the time of the simulation.

virus

the virus inside the environment.

The virus of the simulation that infects entities.

The virus of the simulation that infects entities.

Returns:

the virus.