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

A facility project approved by the board. More...

#include <facility_projects.h>

Public Member Functions

float progress (const GameDateValue &today) const
 

Public Attributes

std::uint32_t id = 0
 
TeamID team_id = 0
 
FacilityProjectType type = FacilityProjectType::TrainingGround
 
GameDateValue start
 
GameDateValue end
 
std::int64_t cost = 0
 
std::int64_t paid = 0
 
std::uint32_t amount = 0
 
std::uint32_t disruption = 0
 
bool completed = false
 

Detailed Description

A facility project approved by the board.

Member Function Documentation

◆ progress()

float FacilityProject::progress ( const GameDateValue &  today) const

Share of the works done on today, in [0, 1].

Member Data Documentation

◆ amount

std::uint32_t FacilityProject::amount = 0

◆ completed

bool FacilityProject::completed = false

◆ cost

std::int64_t FacilityProject::cost = 0

◆ disruption

std::uint32_t FacilityProject::disruption = 0

◆ end

GameDateValue FacilityProject::end

Completion day.

◆ id

std::uint32_t FacilityProject::id = 0

◆ paid

std::int64_t FacilityProject::paid = 0

◆ start

GameDateValue FacilityProject::start

◆ team_id

TeamID FacilityProject::team_id = 0

◆ type


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