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

            money.TryGetValue(type, out x);
            return(x);
        }
示例#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));
        }
示例#3
0
        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);
            }
        }
示例#4
0
 //###################################################################################################################################
 //Einrichtung der Anderen
 public int Money(DSA_MONEY type)
 {
     return(Charakter.getMoney(type));
 }
示例#5
0
 public void setMoney(DSA_MONEY type, int value)
 {
     money.Remove(type);
     money.Add(type, value);
 }