Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchAudioFrame Struct Reference

#include <match_audio.h>

Public Attributes

float ballX = 0.5f
 
float ballSpeed = 0.0f
 
bool ballIsShot = false
 
bool ballLoose = false
 
PlayerID kickerId = 0
 
bool homeInPossession = false
 
bool awayInPossession = false
 
float matchMinute = 0.0f
 
int period = 1
 
int homeScore = 0
 
int awayScore = 0
 
bool stopped = false
 
float playbackSpeed = 1.0f
 
bool paused = false
 
bool skipped = false
 

Detailed Description

What the live view shows this frame, copied from the engine on the UI thread. The audio never sees the engine itself.

Member Data Documentation

◆ awayInPossession

bool MatchAudioFrame::awayInPossession = false

◆ awayScore

int MatchAudioFrame::awayScore = 0

◆ ballIsShot

bool MatchAudioFrame::ballIsShot = false

◆ ballLoose

bool MatchAudioFrame::ballLoose = false

Nobody has the ball at their feet.

◆ ballSpeed

float MatchAudioFrame::ballSpeed = 0.0f

Ball speed in m/s.

◆ ballX

float MatchAudioFrame::ballX = 0.5f

◆ homeInPossession

bool MatchAudioFrame::homeInPossession = false

◆ homeScore

int MatchAudioFrame::homeScore = 0

◆ kickerId

PlayerID MatchAudioFrame::kickerId = 0

Last player to kick or deflect the ball (0: none).

◆ matchMinute

float MatchAudioFrame::matchMinute = 0.0f

◆ paused

bool MatchAudioFrame::paused = false

◆ period

int MatchAudioFrame::period = 1

◆ playbackSpeed

float MatchAudioFrame::playbackSpeed = 1.0f

Simulated seconds per wall second.

◆ skipped

bool MatchAudioFrame::skipped = false

The match jumped ahead this frame (highlight skip, quick result): events that arrived with the jump are consumed silently.

◆ stopped

bool MatchAudioFrame::stopped = false

Break or full time: the crowd settles.


The documentation for this struct was generated from the following file: