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

Physical outcome of one player's match. More...

#include <world_simulation.h>

Public Attributes

PlayerID player_id = 0
 
std::uint8_t minutes_played = 0
 
float end_condition = -1.0f
 
bool injured = false
 

Detailed Description

Physical outcome of one player's match.

  • end_condition < 0: the condition drain is estimated from minutes and stamina and the injury hazard is rolled here (ECIS match incidence).
  • end_condition >= 0: the match engine measured the condition and owns injuries; set injured=true for players it injured and the diagnosis and layoff are drawn here.

Member Data Documentation

◆ end_condition

float PlayerMatchConsequence::end_condition = -1.0f

◆ injured

bool PlayerMatchConsequence::injured = false

◆ minutes_played

std::uint8_t PlayerMatchConsequence::minutes_played = 0

◆ player_id

PlayerID PlayerMatchConsequence::player_id = 0

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