summaryrefslogtreecommitdiff
path: root/src/linkgraph/linkgraph_gui.h
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-06-09 13:07:53 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-06-09 13:07:53 +0000
commitb4ab43be5f2067e161939c87230a0d2ad9bdd952 (patch)
tree0424bc850461d93016a80398ef30208e02a579ec /src/linkgraph/linkgraph_gui.h
parent0e5fa8d195967ca4650967c7be1f54328a207253 (diff)
downloadopenttd-b4ab43be5f2067e161939c87230a0d2ad9bdd952.tar.xz
(svn r25364) -Add: support for flow stats to linkgraph overlay
Diffstat (limited to 'src/linkgraph/linkgraph_gui.h')
-rw-r--r--src/linkgraph/linkgraph_gui.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/linkgraph/linkgraph_gui.h b/src/linkgraph/linkgraph_gui.h
index fe87a0464..6edcb38a4 100644
--- a/src/linkgraph/linkgraph_gui.h
+++ b/src/linkgraph/linkgraph_gui.h
@@ -23,10 +23,11 @@
* Properties of a link between two stations.
*/
struct LinkProperties {
- LinkProperties() : capacity(0), usage(0) {}
+ LinkProperties() : capacity(0), usage(0), planned(0) {}
uint capacity; ///< Capacity of the link.
uint usage; ///< Actual usage of the link.
+ uint planned; ///< Planned usage of the link.
};
/**
@@ -85,7 +86,7 @@ protected:
bool IsPointVisible(Point pt, const DrawPixelInfo *dpi, int padding = 0) const;
void GetWidgetDpi(DrawPixelInfo *dpi) const;
- static void AddStats(uint new_cap, uint new_usg, LinkProperties &cargo);
+ static void AddStats(uint new_cap, uint new_usg, uint new_flow, LinkProperties &cargo);
static void DrawVertex(int x, int y, int size, int colour, int border_colour);
};