Ejemplo n.º 1
0
        public void ModifyNeedWithFactor(NeedType needType, NeedFactor needFactor, float delta)
        {
            float previousFactorValue          = _factors[needFactor];
            float satisfactionChangeFromFactor = delta - previousFactorValue;

            _factors[needFactor] = delta;

            _satisfactions[needType] += satisfactionChangeFromFactor;
        }
Ejemplo n.º 2
0
 public void ModifyNeedWithFactor(NeedData needData, NeedType needType, NeedFactor needFactor, float delta)
 {
     needData.ModifyNeedWithFactor(needType, needFactor, delta);
 }