Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchSceneTuning::Pitch Struct Referencefinal

#include <match_scene_tuning.h>

Static Public Attributes

static constexpr float WIDTH = 800.0f
 
static constexpr float HEIGHT = 500.0f
 
static constexpr float MIN_SCALE = 0.5f
 
static constexpr float MAX_SCALE = 3.0f
 
static constexpr float CENTRE_RATIO = 0.5f
 
static constexpr float LINE_THICKNESS = 2.0f
 
static constexpr float RECTANGLE_ROUNDING = 0.0f
 
static constexpr float CENTRE_CIRCLE_RADIUS_RATIO = 0.15f
 
static constexpr int CENTRE_CIRCLE_SEGMENTS = 32
 
static constexpr float CENTRE_SPOT_RADIUS = 4.0f
 
static constexpr float PENALTY_BOX_WIDTH_RATIO = 0.15f
 
static constexpr float PENALTY_BOX_HEIGHT_RATIO = 0.5f
 
static constexpr float GOAL_BOX_WIDTH_RATIO = 0.05f
 
static constexpr float GOAL_BOX_HEIGHT_RATIO = 0.25f
 
static constexpr float CORNER_RADIUS_RATIO = 0.03f
 
static constexpr int CORNER_ARC_SEGMENTS = 10
 
static constexpr float BOTTOM_RIGHT_ARC_END_MULTIPLIER = 1.5f
 
static constexpr int MOWING_STRIPE_COUNT = 10
 
static constexpr int MOWING_COLOR_PERIOD = 2
 
static constexpr float GOAL_DEPTH = 15.0f
 
static constexpr float GOAL_WIDTH_RATIO = 0.12f
 
static constexpr float PENALTY_SPOT_RADIUS = 3.0f
 
static constexpr float PENALTY_SPOT_X_RATIO = 0.115f
 
static constexpr ImU32 GRASS_COLOR = IM_COL32(34, 139, 34, 255)
 
static constexpr ImU32 ALTERNATE_GRASS_COLOR = IM_COL32(30, 126, 32, 255)
 
static constexpr ImU32 LINE_COLOR = IM_COL32(255, 255, 255, 200)
 
static constexpr ImU32 GOAL_COLOR = IM_COL32(225, 230, 235, 230)
 

Member Data Documentation

◆ ALTERNATE_GRASS_COLOR

constexpr ImU32 MatchSceneTuning::Pitch::ALTERNATE_GRASS_COLOR = IM_COL32(30, 126, 32, 255)
staticconstexpr

◆ BOTTOM_RIGHT_ARC_END_MULTIPLIER

constexpr float MatchSceneTuning::Pitch::BOTTOM_RIGHT_ARC_END_MULTIPLIER = 1.5f
staticconstexpr

◆ CENTRE_CIRCLE_RADIUS_RATIO

constexpr float MatchSceneTuning::Pitch::CENTRE_CIRCLE_RADIUS_RATIO = 0.15f
staticconstexpr

◆ CENTRE_CIRCLE_SEGMENTS

constexpr int MatchSceneTuning::Pitch::CENTRE_CIRCLE_SEGMENTS = 32
staticconstexpr

◆ CENTRE_RATIO

constexpr float MatchSceneTuning::Pitch::CENTRE_RATIO = 0.5f
staticconstexpr

◆ CENTRE_SPOT_RADIUS

constexpr float MatchSceneTuning::Pitch::CENTRE_SPOT_RADIUS = 4.0f
staticconstexpr

◆ CORNER_ARC_SEGMENTS

constexpr int MatchSceneTuning::Pitch::CORNER_ARC_SEGMENTS = 10
staticconstexpr

◆ CORNER_RADIUS_RATIO

constexpr float MatchSceneTuning::Pitch::CORNER_RADIUS_RATIO = 0.03f
staticconstexpr

◆ GOAL_BOX_HEIGHT_RATIO

constexpr float MatchSceneTuning::Pitch::GOAL_BOX_HEIGHT_RATIO = 0.25f
staticconstexpr

◆ GOAL_BOX_WIDTH_RATIO

constexpr float MatchSceneTuning::Pitch::GOAL_BOX_WIDTH_RATIO = 0.05f
staticconstexpr

◆ GOAL_COLOR

constexpr ImU32 MatchSceneTuning::Pitch::GOAL_COLOR = IM_COL32(225, 230, 235, 230)
staticconstexpr

◆ GOAL_DEPTH

constexpr float MatchSceneTuning::Pitch::GOAL_DEPTH = 15.0f
staticconstexpr

◆ GOAL_WIDTH_RATIO

constexpr float MatchSceneTuning::Pitch::GOAL_WIDTH_RATIO = 0.12f
staticconstexpr

◆ GRASS_COLOR

constexpr ImU32 MatchSceneTuning::Pitch::GRASS_COLOR = IM_COL32(34, 139, 34, 255)
staticconstexpr

◆ HEIGHT

constexpr float MatchSceneTuning::Pitch::HEIGHT = 500.0f
staticconstexpr

◆ LINE_COLOR

constexpr ImU32 MatchSceneTuning::Pitch::LINE_COLOR = IM_COL32(255, 255, 255, 200)
staticconstexpr

◆ LINE_THICKNESS

constexpr float MatchSceneTuning::Pitch::LINE_THICKNESS = 2.0f
staticconstexpr

◆ MAX_SCALE

constexpr float MatchSceneTuning::Pitch::MAX_SCALE = 3.0f
staticconstexpr

Lets the pitch fill large (1440p/4K) match views.

◆ MIN_SCALE

constexpr float MatchSceneTuning::Pitch::MIN_SCALE = 0.5f
staticconstexpr

◆ MOWING_COLOR_PERIOD

constexpr int MatchSceneTuning::Pitch::MOWING_COLOR_PERIOD = 2
staticconstexpr

◆ MOWING_STRIPE_COUNT

constexpr int MatchSceneTuning::Pitch::MOWING_STRIPE_COUNT = 10
staticconstexpr

◆ PENALTY_BOX_HEIGHT_RATIO

constexpr float MatchSceneTuning::Pitch::PENALTY_BOX_HEIGHT_RATIO = 0.5f
staticconstexpr

◆ PENALTY_BOX_WIDTH_RATIO

constexpr float MatchSceneTuning::Pitch::PENALTY_BOX_WIDTH_RATIO = 0.15f
staticconstexpr

◆ PENALTY_SPOT_RADIUS

constexpr float MatchSceneTuning::Pitch::PENALTY_SPOT_RADIUS = 3.0f
staticconstexpr

◆ PENALTY_SPOT_X_RATIO

constexpr float MatchSceneTuning::Pitch::PENALTY_SPOT_X_RATIO = 0.115f
staticconstexpr

◆ RECTANGLE_ROUNDING

constexpr float MatchSceneTuning::Pitch::RECTANGLE_ROUNDING = 0.0f
staticconstexpr

◆ WIDTH

constexpr float MatchSceneTuning::Pitch::WIDTH = 800.0f
staticconstexpr

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