for(int i = 0; i < Stats.NUM_STATS; i++)
{
if(NPC_STD_CALCULATOR[i] != null)
{
_calculators[i] = new Calculator(NPC_STD_CALCULATOR[i]);
}
}
}
// Select the Calculator of the affected state in the Calculator set
int stat = f.stat.ordinal();
if(_calculators[stat] == null)
{
_calculators[stat] = new Calculator();
}
// Add the Func to the calculator corresponding to the state
_calculators[stat].addFunc(f);