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