Example #1
0
    public bool has_trait(LOTRGame.TRAITS t)
    {
        foreach (LOTRGame.TRAITS trait in traits)
        {
            if (trait == t)
            {
                return(true);
            }
        }

        return(false);
    }
Example #2
0
 public void remove_trait(LOTRGame.TRAITS trait)
 {
     temporary_traits.Remove(trait);
 }
Example #3
0
 public bool has_trait(LOTRGame.TRAITS trait)
 {
     return(traits.Contains(trait) || temporary_traits.Contains(trait));
 }
Example #4
0
 public void add_trait(LOTRGame.TRAITS trait)
 {
     temporary_traits.Add(trait);
 }