Skip to content

Army

Terminology:

Army/group: a group of players working together

Leader: player who “dictates” the actions of the group

Follower: player who follows the leader’s actions

Type: Bot

The config file for this group.

Type: Config<ArmyConfig>

Whether the army is initialized.

Type: boolean

The players in this group.

Type: Set<string>

The room number to join.

Type: string

Gets the player number position in the army.

Returns: number

Initializes everything needed to begin armying.

Returns: Promise<boolean>

Whether this player is the leader of the army.

Returns: boolean

Sets the config file name.

ParameterTypeDescription
fileNamestringThe name of the config file.

Returns: void

Waits for all players in the army in the map.

Returns: Promise<void>