Example #1
0
        public int getMoney(DSA_MONEY type)
        {
            int x;

            money.TryGetValue(type, out x);
            return(x);
        }
Example #2
0
        public int Money(DSA_MONEY type, String money)
        {
            var isNumeric = int.TryParse(money, out var wert_int);

            if (isNumeric == true)
            {
                Charakter.setMoney(type, wert_int);
            }
            return(Money(type));
        }
        public void ControllClass_SimpleTest_Money()
        {
            for (int i = 0; i < Enum.GetNames(typeof(DSA_MONEY)).Length; i++)
            {
                DSA_MONEY x = (DSA_MONEY)i;
                int       y = random.Next(attrMax);

                int z = controll.Money(x, y.ToString());

                Assert.AreEqual(y, z);
            }
        }
Example #4
0
 //###################################################################################################################################
 //Einrichtung der Anderen
 public int Money(DSA_MONEY type)
 {
     return(Charakter.getMoney(type));
 }
Example #5
0
 public void setMoney(DSA_MONEY type, int value)
 {
     money.Remove(type);
     money.Add(type, value);
 }