StatBag::SetMin

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

SetMin sets the minimum statistics value in a certain id in a stat bag. SetMin also compares and computes the minimum 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 minimum statistics value. 
Return Value

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