Beispiel #1
0
 public bool ApplyModifier(IModifier modifier)
 {
     if (modifier == null)
     {
         return(false);
     }
     modifier.Space = this.space;
     modifier.Apply();
     return(true);
 }
 public void AddModifier(IModifier<ICharacter> modifier)
 {
     //TODO : Check that this still works.
     //if (!_modifiers.Exists(i => i.Name ==  modifier.Name))
     //{
         modifier.Apply(this);
         _modifiers.Add(modifier);
     //}
 }