Class: Match

Match(team1, team2, team3, team4, team5, team6)

new Match(team1, team2, team3, team4, team5, team6)

Parameters:
Name Type Description
team1 string Team number of the first team (red)
team2 string Team number of the second team (red)
team3 string Team number of the third team (red)
team4 string Team number of the fourth team (blue)
team5 string Team number of the fifth team (blue)
team6 string Team number of the sixth team (blue)
Source:

Members

(static) this.timer

Properties:
Name Type Description
match Match The match that the timer is in
time number The current time of the timer
running boolean Whether the timer is running or not
autoLength number The length of the auto period in seconds
matchLength number The length of the match in seconds
Source:

Methods

(static) deserialize(jsonRepresentation) → {Match}

Converts a JSON representation of a match to the match itself
Parameters:
Name Type Description
jsonRepresentation string the JSON representation
Source:
Returns:
Type
Match

(static) getRobot(robot) → {Robot|null}

Gets a robot
Parameters:
Name Type Description
robot object robot data
Source:
Returns:
Type
Robot | null

(static) reset()

Reset the match
Source:

(static) serialize() → {string}

Converts the match to JSON
Source:
Returns:
Type
string

(static) setupTeamButtons()

Set up the team buttons
Source:

(static) start()

Start the match
Source:

(static) update()

Update the match
Source:

Type Definitions

Scoring

Type:
  • Object
Source:

Match(team1, team2, team3, team4, team5, team6)

new Match(team1, team2, team3, team4, team5, team6)

Parameters:
Name Type Description
team1 string Team number of the first team (red)
team2 string Team number of the second team (red)
team3 string Team number of the third team (red)
team4 string Team number of the fourth team (blue)
team5 string Team number of the fifth team (blue)
team6 string Team number of the sixth team (blue)
Source:

Members

(static) this.timer

Properties:
Name Type Description
match Match The match that the timer is in
time number The current time of the timer
running boolean Whether the timer is running or not
autoLength number The length of the auto period in seconds
matchLength number The length of the match in seconds
Source:

Methods

(static) deserialize(jsonRepresentation) → {Match}

Converts a JSON representation of a match to the match itself
Parameters:
Name Type Description
jsonRepresentation string the JSON representation
Source:
Returns:
Type
Match

(static) getRobot(robot) → {Robot|null}

Gets a robot
Parameters:
Name Type Description
robot object robot data
Source:
Returns:
Type
Robot | null

(static) reset()

Reset the match
Source:

(static) serialize() → {string}

Converts the match to JSON
Source:
Returns:
Type
string

(static) setupTeamButtons()

Set up the team buttons
Source:

(static) start()

Start the match
Source:

(static) update()

Update the match
Source:

Type Definitions

Scoring

Type:
  • Object
Source: