OpenTTD
demands.h
Go to the documentation of this file.
1 
3 #ifndef DEMANDS_H
4 #define DEMANDS_H
5 
6 #include "linkgraphjob_base.h"
7 
13 public:
15 
16 private:
17  int32 max_distance;
18  int32 mod_dist;
19  int32 accuracy;
20 
21  template<class Tscaler>
22  void CalcDemand(LinkGraphJob &job, Tscaler scaler);
23 };
24 
29 public:
30 
35  virtual void Run(LinkGraphJob &job) const { DemandCalculator c(job); }
36 
40  virtual ~DemandHandler() {}
41 };
42 
43 #endif /* DEMANDS_H */