public void TestPersönlicheAusstrahlung() { mCharacter.Spezies = Races.Mensch; mCharacter.Archetyp = AbenteuerTyp.BN; //egal CharacterEngine.ComputeBasisIn(this.mCharacter); CharacterEngine.ComputeErscheinung(this.mCharacter); CharacterEngine.ComputePsychisch(this.mCharacter); Assert.GreaterOrEqual(mCharacter.pA, _MIN_D100); Assert.LessOrEqual(mCharacter.pA, _MAX_D100); }
public void SetPsycheCompute() { Toolbox globalVars = Toolbox.Instance; //Berechne-> und speicher in Charakter CharacterEngine.ComputePsychisch(globalVars.mCharacter); inpA.text = globalVars.mCharacter.pA.ToString(); inSb.text = globalVars.mCharacter.Sb.ToString(); inWk.text = globalVars.mCharacter.Wk.ToString(); Debug.Log(globalVars.mCharacter.ToString()); }
public void TestWkSb() { mCharacter.Spezies = Races.Mensch; mCharacter.Archetyp = AbenteuerTyp.Gl; //egal CharacterEngine.ComputeBasisIn(this.mCharacter); CharacterEngine.ComputeBasisKo(this.mCharacter); CharacterEngine.ComputePsychisch(this.mCharacter); CharacterEngine.ComputePsychisch(this.mCharacter); Assert.GreaterOrEqual(mCharacter.Wk, _MIN_D100); Assert.LessOrEqual(mCharacter.Wk, _MAX_D100); Assert.GreaterOrEqual(mCharacter.Sb, _MIN_D100); Assert.LessOrEqual(mCharacter.Sb, _MAX_D100); Debug.Log(mCharacter.Sb); }
public void TestePAMenschForAllATypen() { _mCharacter.Spezies = Races.Mensch; var aTypen = Enum.GetValues(typeof(AbenteuerTyp)); try { foreach (AbenteuerTyp aTyp in aTypen) { _mCharacter.Archetyp = aTyp; CharacterEngine.ComputeBasisIn(this._mCharacter); CharacterEngine.ComputeErscheinung(this._mCharacter); CharacterEngine.ComputePsychisch(this._mCharacter); //enthält pA!! int pA = _mCharacter.pA; switch (_mCharacter.Archetyp) { case AbenteuerTyp.Hä: Assert.GreaterOrEqual(pA, this._HAE_PA, "Händler pA zu gering, pA:" + pA); break; case AbenteuerTyp.Gl: Assert.GreaterOrEqual(pA, this._GL_PA, "Glücksritter pA zu gering , pA:" + pA); break; case AbenteuerTyp.Ba: Assert.GreaterOrEqual(pA, this._BA_PA, "Barde pA zu gering, pA:" + pA); break; case AbenteuerTyp.Tm: Assert.GreaterOrEqual(pA, this._TM_PA, "Tiermeister pA zu gering, pA:" + pA); break; default: break; } } } catch (AssertionException asEx) { Debug.Log(asEx.ToString()); Assert.Fail(); } }