Player12
An open source football management simulator
Loading...
Searching...
No Matches
Stadium3D::Geometry Struct Reference

#include <match_stadium_3d.h>

Public Member Functions

void build (const MatchKits &kits, bool daylightView=false)
 
bool inStandShadow (Vec3 point) const
 

Public Attributes

std::vector< GroundPolygon > ground
 
PitchGrid pitch
 
std::vector< GroundPolygon > wear
 
std::vector< GroundPolygon > markings
 
std::vector< Face > faces
 
std::vector< Section > sections
 
std::vector< CrowdDot > crowd
 
std::vector< CrowdClump > clumps
 
std::vector< CrowdFlag > flags
 
std::vector< AdBoard > boards
 
std::array< Goal, 2 > goals {}
 
std::array< Vec3, 4 > cornerFlags {}
 
bool day = false
 
std::vector< GroundPolygon > standShadows
 
std::vector< std::array< Vec3, 4 > > shadowAreas
 

Member Function Documentation

◆ build()

void Stadium3D::Geometry::build ( const MatchKits &  kits,
bool  daylightView = false 
)

Rebuilds every static element; the crowd wears the given kits. The lighting is baked into the colours: floodlights at night, the sun (with the roofs' shadows) by day.

◆ inStandShadow()

bool Stadium3D::Geometry::inStandShadow ( Vec3  point) const

Whether a ground point lies in a stand's shadow (always false at night).

Member Data Documentation

◆ boards

std::vector<AdBoard> Stadium3D::Geometry::boards

◆ clumps

std::vector<CrowdClump> Stadium3D::Geometry::clumps

◆ cornerFlags

std::array<Vec3, 4> Stadium3D::Geometry::cornerFlags {}

◆ crowd

std::vector<CrowdDot> Stadium3D::Geometry::crowd

◆ day

bool Stadium3D::Geometry::day = false

Daylight build: sunlit and shaded stands, lamps off.

◆ faces

std::vector<Face> Stadium3D::Geometry::faces

◆ flags

std::vector<CrowdFlag> Stadium3D::Geometry::flags

◆ goals

std::array<Goal, 2> Stadium3D::Geometry::goals {}

◆ ground

std::vector<GroundPolygon> Stadium3D::Geometry::ground

◆ markings

std::vector<GroundPolygon> Stadium3D::Geometry::markings

◆ pitch

PitchGrid Stadium3D::Geometry::pitch

◆ sections

std::vector<Section> Stadium3D::Geometry::sections

◆ shadowAreas

std::vector<std::array<Vec3, 4> > Stadium3D::Geometry::shadowAreas

◆ standShadows

std::vector<GroundPolygon> Stadium3D::Geometry::standShadows

By day: the roofs' shadows on the ground (drawn over the grass) and the same areas as plain quads for testing who stands in them.

◆ wear

std::vector<GroundPolygon> Stadium3D::Geometry::wear

Soft worn patches (goalmouths, spots, centre) over the grass.


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