|
OpenTTD Source
14.0-beta3
|
void Run(LinkGraphJob &job) const override
Call the demand calculator on the given component.
DemandCalculator(LinkGraphJob &job)
Create the DemandCalculator and immediately do the calculation.
Stateless, thread safe demand handler.
virtual ~DemandHandler()=default
Virtual destructor has to be defined because of virtual Run().
Class for calculation jobs to be run on link graphs.
int32_t accuracy
Accuracy of the calculation.
int32_t mod_dist
Distance modifier, determines how much demands decrease with distance.
A handler doing "something" on a link graph component.
void CalcDemand(LinkGraphJob &job, Tscaler scaler)
Do the actual demand calculation, called from constructor.
int32_t max_distance
Maximum distance possible on the map.