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

#include <match_render_snapshot.h>

Public Attributes

Vector2F previousPosition
 
Vector2F currentPosition
 
float previousZ = 0.0f
 
float currentZ = 0.0f
 
const Player * possessedBy = nullptr
 
float previousHeightMetres = 0.0f
 
float currentHeightMetres = 0.0f
 
bool isShot = false
 
bool isAerialDelivery = false
 
bool fromThrowIn = false
 
const Player * kicker = nullptr
 
float kickerLockout = 0.0f
 

Member Data Documentation

◆ currentHeightMetres

float MatchRenderBall::currentHeightMetres = 0.0f

◆ currentPosition

Vector2F MatchRenderBall::currentPosition
Initial value:
static constexpr float CENTRE
Definition match_tuning.h:37

◆ currentZ

float MatchRenderBall::currentZ = 0.0f

◆ fromThrowIn

bool MatchRenderBall::fromThrowIn = false

Thrown in from the touchline (until the next touch).

◆ isAerialDelivery

bool MatchRenderBall::isAerialDelivery = false

◆ isShot

bool MatchRenderBall::isShot = false

◆ kicker

const Player* MatchRenderBall::kicker = nullptr

Who last struck the ball and the seconds left in his lockout. The lockout is reset on every kick and only counts down otherwise, so a rise between two snapshots marks the step the ball was struck.

◆ kickerLockout

float MatchRenderBall::kickerLockout = 0.0f

◆ possessedBy

const Player* MatchRenderBall::possessedBy = nullptr

◆ previousHeightMetres

float MatchRenderBall::previousHeightMetres = 0.0f

◆ previousPosition

Vector2F MatchRenderBall::previousPosition

◆ previousZ

float MatchRenderBall::previousZ = 0.0f

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