Player12
An open source football management simulator
Loading...
Searching...
No Matches
match_tracking.h File Reference
#include <array>
#include <cstddef>
#include <cstdint>
#include <vector>
#include "global/types.h"

Go to the source code of this file.

Classes

struct  TrackedPlayer
 Tracked numbers of one stats entry (one player's stint). More...
 
struct  TrackedShot
 How a tracked shot came about (same order as the SHOT events). More...
 
class  MatchTracker
 

Namespaces

namespace  MatchTracking
 

Functions

std::size_t MatchTracking::cellOf (float x, float y)
 
std::size_t MatchTracking::bucketOf (float minute, int period)
 

Variables

constexpr std::size_t MatchTracking::GRID_COLUMNS = 12
 
constexpr std::size_t MatchTracking::GRID_ROWS = 9
 
constexpr std::size_t MatchTracking::CELLS = GRID_COLUMNS * GRID_ROWS
 
constexpr int MatchTracking::BUCKET_MINUTES = 5
 
constexpr std::size_t MatchTracking::BUCKETS = 24
 
constexpr std::size_t MatchTracking::MAX_PLAYERS = 40
 
constexpr float MatchTracking::PROGRESSIVE_METRES = 10.0f
 
constexpr float MatchTracking::PROGRESSIVE_MIN_END_X = 0.4f
 
constexpr float MatchTracking::PRESSURE_RADIUS_METRES = 4.0f