예제 #1
0
        public double[] GetContextValue(string valueName)
        {
            Atribute valueAtribute = null;

            foreach (Atribute atribute in atributes)
            {
                if (atribute.AtributeName.Equals(valueName))
                {
                    valueAtribute = atribute;
                    break;
                }
            }
            if (valueAtribute == null)
            {
                return new double[] { 1, 0, 0 }
            }
            ;
            return(valueAtribute.GetValues());
        }
    }
예제 #2
0
 public void AddSpecialModifier(Atribute atribute, double modifier)
 {
     specialModifiers.Add(atribute, modifier);
 }