mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r25908) -Fix: Some documentation for constructors of LinkRefresher::Hop.
This commit is contained in:
parent
8fc539251e
commit
6c4e7ab51d
@ -60,7 +60,19 @@ protected:
|
|||||||
OrderID from; ///< Last order where vehicle could interact with cargo or absolute first order.
|
OrderID from; ///< Last order where vehicle could interact with cargo or absolute first order.
|
||||||
OrderID to; ///< Next order to be processed.
|
OrderID to; ///< Next order to be processed.
|
||||||
CargoID cargo; ///< Cargo the consist is probably carrying or CT_INVALID if unknown.
|
CargoID cargo; ///< Cargo the consist is probably carrying or CT_INVALID if unknown.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default constructor should not be called but has to be visible for
|
||||||
|
* usage in std::set.
|
||||||
|
*/
|
||||||
Hop() {NOT_REACHED();}
|
Hop() {NOT_REACHED();}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Real constructor, only use this one.
|
||||||
|
* @param from First order of the hop.
|
||||||
|
* @param to Second order of the hop.
|
||||||
|
* @param cargo Cargo the consist is probably carrying when passing the hop.
|
||||||
|
*/
|
||||||
Hop(OrderID from, OrderID to, CargoID cargo) : from(from), to(to), cargo(cargo) {}
|
Hop(OrderID from, OrderID to, CargoID cargo) : from(from), to(to), cargo(cargo) {}
|
||||||
bool operator<(const Hop &other) const;
|
bool operator<(const Hop &other) const;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user