Class: EventManager

EventManager

Class representing an event manager.


new EventManager()

Create an event manager.

Members


tournaments :Array.<Tournament>

Array of all tournaments being managed.

Type:

Methods


createTournament( [id] [, options])

Create a new tournament.

Parameters:
Name Type Argument Default Description
id String <optional>
<nullable>
null

User-defined ID.

options Object <optional>
{}

Options a user can define for a tournament.

Returns:

The newly created tournament.

Type
Tournament

removeTournament(tournament)

Remove an existing tournament from the manager.

Parameters:
Name Type Description
tournament Tournament

The tournament to be removed.

Returns:

If the tournament was removed.

Type
Boolean