SetMax sets the maximum statistics value of a certain id in a stat bag. SetMax also compares and computes the maximum statistics value of two different stat bags.
Parameters |
Description |
unsigned statId |
Identifier of the statistic value. |
Stat* pstat |
Pointer to Stat object holding the statistic value. |
const StatBag& other |
A different stat bag which is compared with the current one to obtain the maximum statistics value. |
A Boolean value of true if the maximum statistic value is set otherwise false.