OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

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
12 class DemandCalculator {
13 public:
14 DemandCalculator(LinkGraphJob &job);
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
28 class DemandHandler : public ComponentHandler {
29 public:
30
35 virtual void Run(LinkGraphJob &job) const { DemandCalculator c(job); }
36
40 virtual ~DemandHandler() {}
41 };
42
43 #endif /* DEMANDS_H */