EventLogic

object EventLogic
class Object
trait Matchable
class Any

Value members

Concrete methods

Logic to pause the simulation.

Logic to pause the simulation.

Value parameters:
config

the configuration to modify

Returns:

the event logic

Logic to resume the simulation.

Logic to resume the simulation.

Value parameters:
config

the configuration to modify

Returns:

the event logic

Logic to change the simulation speed.

Logic to change the simulation speed.

Value parameters:
config

the configuration to modify

engineSpeed

the speed to set

Returns:

the event logic

Logic to handle the stop.

Logic to handle the stop.

Value parameters:
config

the configuration to modify

Returns:

the event logic

Logic to switch the obligation to wear a mask.

Logic to switch the obligation to wear a mask.

Returns:

the event logic

def switchStructureLogic(group: String): EventLogic

Logic to switch the opening state of a group of structure.

Logic to switch the opening state of a group of structure.

Value parameters:
group

the group to switch

Returns:

the event logic

def vaccineRound(percentage: Double): EventLogic

Logic to increase the immunity of a percentage of entities by vaccinate them.

Logic to increase the immunity of a percentage of entities by vaccinate them.

Value parameters:
percentage

the percentage of entities to vaccinate.

Returns:

the event logic