Event

enum Event

Event represents all the event that can be fired by the user interface.

trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Enum entries

case ChangeSpeed(speed: Speed)

The user signal the intent to change the speed of the simulation.

The user signal the intent to change the speed of the simulation.

Value parameters:
speed

the selected speed

case Pause extends Event

The user signal the intent to pause the simulation.

The user signal the intent to pause the simulation.

case Resume extends Event

The user signal the intent to resume the simulation.

The user signal the intent to resume the simulation.

case Stop extends Event

The user signal the intent to stop the simulation.

The user signal the intent to stop the simulation.

The user signal the intent to switch the obligation of the mask.

The user signal the intent to switch the obligation of the mask.

case SwitchStructure(group: String)

The user signal the intent to open/close a structure.

The user signal the intent to open/close a structure.

Value parameters:
group:

the group to open/close

case VaccineRound(percentage: Double)

The user signal the intent to do a vaccine round.

The user signal the intent to do a vaccine round.

Value parameters:
percentage

the percentage of entities that will be vaccinated