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

#include <match_render_snapshot.h>

Public Attributes

std::vector< MatchRenderPlayer > players
 
TeamID homeTeam = 0
 
TeamID awayTeam = 0
 
MatchRenderBall ball
 
MatchState state = MatchState::KICK_OFF
 
TeamPhase homePhase = TeamPhase::SET_PIECE
 
TeamPhase awayPhase = TeamPhase::SET_PIECE
 
float transitionSecondsRemaining = 0.0f
 
int homeScore = 0
 
int awayScore = 0
 
bool goalScoredByHome = false
 
float goalCelebrationRemaining = 0.0f
 
float goalCelebrationDuration = MatchTuning::Timing::GOAL_CELEBRATION_SECONDS
 
float matchTimeMinutes = 0.0f
 
const std::vector< MatchEvent > * events = nullptr
 
const MatchStats * stats = nullptr
 
float interpolationAlpha = 0.0f
 
int period = 1
 
int addedMinutesFirstHalf = 0
 
int addedMinutesSecondHalf = 0
 
GoalkeeperState homeGoalkeeperState = GoalkeeperState::SET_POSITION
 
GoalkeeperState awayGoalkeeperState = GoalkeeperState::SET_POSITION
 
const std::vector< PlayerMatchStats > * playerStats = nullptr
 

Member Data Documentation

◆ addedMinutesFirstHalf

int MatchRenderSnapshot::addedMinutesFirstHalf = 0

◆ addedMinutesSecondHalf

int MatchRenderSnapshot::addedMinutesSecondHalf = 0

◆ awayGoalkeeperState

GoalkeeperState MatchRenderSnapshot::awayGoalkeeperState = GoalkeeperState::SET_POSITION

◆ awayPhase

TeamPhase MatchRenderSnapshot::awayPhase = TeamPhase::SET_PIECE

◆ awayScore

int MatchRenderSnapshot::awayScore = 0

◆ awayTeam

TeamID MatchRenderSnapshot::awayTeam = 0

◆ ball

MatchRenderBall MatchRenderSnapshot::ball

◆ events

const std::vector<MatchEvent>* MatchRenderSnapshot::events = nullptr

◆ goalCelebrationDuration

float MatchRenderSnapshot::goalCelebrationDuration = MatchTuning::Timing::GOAL_CELEBRATION_SECONDS

◆ goalCelebrationRemaining

float MatchRenderSnapshot::goalCelebrationRemaining = 0.0f

◆ goalScoredByHome

bool MatchRenderSnapshot::goalScoredByHome = false

◆ homeGoalkeeperState

GoalkeeperState MatchRenderSnapshot::homeGoalkeeperState = GoalkeeperState::SET_POSITION

◆ homePhase

TeamPhase MatchRenderSnapshot::homePhase = TeamPhase::SET_PIECE

◆ homeScore

int MatchRenderSnapshot::homeScore = 0

◆ homeTeam

TeamID MatchRenderSnapshot::homeTeam = 0

Sides whose strips the views draw (the match screen's own ids, so its colour swatches match); 0: taken from the players' clubs.

◆ interpolationAlpha

float MatchRenderSnapshot::interpolationAlpha = 0.0f

◆ matchTimeMinutes

float MatchRenderSnapshot::matchTimeMinutes = 0.0f

◆ period

int MatchRenderSnapshot::period = 1

1 or 2; added minutes are 0 until announced.

◆ players

std::vector<MatchRenderPlayer> MatchRenderSnapshot::players

◆ playerStats

const std::vector<PlayerMatchStats>* MatchRenderSnapshot::playerStats = nullptr

◆ state

MatchState MatchRenderSnapshot::state = MatchState::KICK_OFF

◆ stats

const MatchStats* MatchRenderSnapshot::stats = nullptr

◆ transitionSecondsRemaining

float MatchRenderSnapshot::transitionSecondsRemaining = 0.0f

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