Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchEngine::Shootout Struct Reference

Public Attributes

bool started = false
 
bool homeFirst = true
 
bool inFlight = false
 
bool kickerHome = true
 
PlayerID taker = 0
 
float timer = 0.0f
 
std::array< int, 2 > kicks {0, 0}
 
std::array< int, 2 > goals {0, 0}
 
std::array< std::vector< PlayerID >, 2 > order
 

Detailed Description

Penalty shootout progress (index 0 home).

Member Data Documentation

◆ goals

std::array<int, 2> MatchEngine::Shootout::goals {0, 0}

◆ homeFirst

bool MatchEngine::Shootout::homeFirst = true

◆ inFlight

bool MatchEngine::Shootout::inFlight = false

◆ kickerHome

bool MatchEngine::Shootout::kickerHome = true

◆ kicks

std::array<int, 2> MatchEngine::Shootout::kicks {0, 0}

◆ order

std::array<std::vector<PlayerID>, 2> MatchEngine::Shootout::order

Kicking order of each side (player ids), cycled when exhausted.

◆ started

bool MatchEngine::Shootout::started = false

◆ taker

PlayerID MatchEngine::Shootout::taker = 0

◆ timer

float MatchEngine::Shootout::timer = 0.0f

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