Exemple #1
0
    public int GetReputationFor(Actor _actor)
    {
        if (!Individuals.ContainsKey(_actor))
        {
            ChangeReputationFor(_actor, 0);
        }

        return(Individuals[_actor]);
    }
Exemple #2
0
 public void ChangeReputationFor(Actor _actor, int _amount)
 {
     if (Individuals.ContainsKey(_actor))
     {
         Individuals[_actor] += _amount;
     }
     else
     {
         Individuals[_actor] = _amount;
     }
 }