summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/station_base.h')
-rw-r--r--src/station_base.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/station_base.h b/src/station_base.h
index 6d6522840..b832a3c19 100644
--- a/src/station_base.h
+++ b/src/station_base.h
@@ -149,6 +149,11 @@ private:
/** Flow descriptions by origin stations. */
class FlowStatMap : public std::map<StationID, FlowStat> {
public:
+ uint GetFlow() const;
+ uint GetFlowVia(StationID via) const;
+ uint GetFlowFrom(StationID from) const;
+ uint GetFlowFromVia(StationID from, StationID via) const;
+
void AddFlow(StationID origin, StationID via, uint amount);
void PassOnFlow(StationID origin, StationID via, uint amount);
StationIDStack DeleteFlows(StationID via);
@@ -268,8 +273,6 @@ struct GoodsEntry {
return HasBit(this->status, GES_RATING);
}
- uint GetSumFlowVia(StationID via) const;
-
/**
* Get the best next hop for a cargo packet from station source.
* @param source Source of the packet.