Beispiel #1
0
    public void weighting()
    {
        if (playerWeighting == 0)
        {
            pWeighting = "none";
        }
        else if (playerWeighting > 0 && playerWeighting <= 3)
        {
            pWeighting = "small";
        }
        else if (playerWeighting > 3 && playerWeighting <= 6)
        {
            pWeighting = "medium";
        }
        else if (playerWeighting > 6 && (playerWeighting <= 9 || playerWeighting > 9))
        {
            pWeighting = "high";
        }

        if (enemyWeighting == 0)
        {
            eWeighting = "none";
        }
        else if (enemyWeighting > 0 && enemyWeighting <= 3)
        {
            eWeighting = "small";
        }
        else if (enemyWeighting > 3 && enemyWeighting <= 6)
        {
            eWeighting = "medium";
        }
        else if (enemyWeighting > 6 && (enemyWeighting <= 9 || enemyWeighting > 9))
        {
            eWeighting = "high";
        }

        playerWeighting = 0;
        enemyWeighting  = 0;

        rulebook.setWeightLvl(pWeighting, eWeighting);
    }