Ejemplo n.º 1
0
        private int GetWound(int sl, Profile Defender)
        {
            int tmp;

            if (sl >= 0)
            {
                tmp = Wound.GetWound(sl, this, Defender);
                if (14 < Math.Abs(tmp))
                {
                    return(14);
                }
                ;
                return(tmp);
            }

            return(0);
        }
Ejemplo n.º 2
0
        // Run every test
        static public bool RunTest()
        {
            bool res = true;

            res &= Dices.LocalTest();
            res &= DiceList.LocalTest();
            res &= Wound.LocalTest();

            if (res && verbose)
            {
                Output.PrintLine("Every test are correct.");
                //System.Console.Read();
            }
            if (!res)
            {
                Output.PrintLine("Recession found.");
                //System.Console.Read();
            }

            return(res);
        }