StatBag::SetMax

StatBag::SetMax
bool SetMax(unsigned statId, Stat* pstat);
void SetMax(const StatBag& other);
Description

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
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. 
Return Value

A Boolean value of true if the maximum statistic value is set otherwise false.