(svn r20483) -Doc: RefitOption operators.

This commit is contained in:
terkhen 2010-08-13 14:24:47 +00:00
parent f336f61104
commit 76ebabf8f6

View File

@ -284,11 +284,21 @@ struct RefitOption {
uint16 value; ///< GRF-local String to display for the cargo
EngineID engine; ///< Engine for which to resolve #value
/**
* Inequality operator for #RefitOption.
* @param other Compare to this #RefitOption.
* @return True if both #RefitOption are different.
*/
FORCEINLINE bool operator != (const RefitOption &other) const
{
return other.cargo != this->cargo || other.value != this->value;
}
/**
* Equality operator for #RefitOption.
* @param other Compare to this #RefitOption.
* @return True if both #RefitOption are equal.
*/
FORCEINLINE bool operator == (const RefitOption &other) const
{
return other.cargo == this->cargo && other.value == this->value;