Assault course module

Module for controlling the Assault Course and Quad Bike timers in gym levels.

Enums

  • trx.assault.Track
    Values: COURSE, QUAD.

Properties

  • trx.assault.stats
    Table for controlling Assault Course records.

Functions

  • trx.assault.start([track])

    Starts the given timer and resets its state. Defaults to trx.assault.Track.COURSE.

  • trx.assault.stop([track])

    Stops the given timer while keeping it visible. Defaults to trx.assault.Track.COURSE.

  • trx.assault.reset([track])

    Stops the given timer and clears its state. Defaults to trx.assault.Track.COURSE.

Assault course stats

Functions

  • trx.assault.stats.add_record(time)

    Adds a new record with the given time in seconds. Increments the internal attempt number.

  • trx.assault.stats.remove_record(record_id)

    Removes a record at the given position, with ids starting from 1.

  • trx.assault.stats.list_records()

    Returns a list of record times. Structure:

    • time: time in seconds.
    • attempt_num: which attempt this was.