FireWorker

FireWorker

Class representing a FireWorker.

Constructor

new FireWorker(id, name, role)

Parameters:
Name Type Description
id number

The id you are going to use to acces the FireWorker.

name string

The name of the FireWorker.

role string

The job of the FireWorker.

Source:

Methods

changeAvailability(toAvailable) → {number}

Changes the availability of the FireWorker.

Parameters:
Name Type Description
toAvailable boolean
Source: