# Class: FlightPlayer

## vcs.vcm.util.flight.FlightPlayer

#### new vcs.vcm.util.flight.FlightPlayer()

### Members

#### clock{vcs.vcm.util.flight.FlightPlayer.Clock}

#### values{vcs.vcm.util.flight.FlightPlayer.Values}

### Methods

#### vcs.vcm.util.flight.FlightPlayer.getInstance(){vcs.vcm.util.flight.FlightPlayer}

#### backward()

  resets the currentTime to the previous anchor

#### forward()

  forwards the currentTime to the next anchor

#### goToTime(time)

  jumps to the given time

  Name | Type | Description
  --- | --- | ---
  `time` | number | time in seconds

#### play(flightInstance)

  starts playing either the given flightInstance or the activeInstance

  Name | Type | Description
  --- | --- | ---
  `flightInstance` | vcs.vcm.util.flight.FlightInstance | undefined |

#### setActiveFlightInstance(flightInstance){Promise}

  Name | Type | Description
  --- | --- | ---
  `flightInstance` | vcs.vcm.util.flight.FlightInstance |

#### stop()

  stops the active flight and sets the currentTime to 0

### Type Definitions

#### vcs.vcm.util.flight.FlightPlayer.Clock{Object}

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `startTime` | number |
  `endTime` | number |
  `currentTime` | number |
  `currentSystemTime` | number | null |
  `times` | Array.<number> |

#### vcs.vcm.util.flight.FlightPlayer.Values{Object}

  ##### Properties:

  Name | Type | Argument | Default | Description
  --- | --- | --- | --- | ---
  `playing` | boolean | <optional> | false |
  `paused` | boolean | <optional> | false |
  `multiplier` | number | <optional> | 1 |
  `repeat` | boolean | <optional> | false |
  `valid` | boolean | <optional> | false |
  `activeInstance` | vcs.vcm.util.flight.FlightInstance | null |  |  |