Exemple #1
0
    //who is faster?
    float ChaseScore(Critter defender)
    {
        float run = GetRunThreat();
        float defRun = defender.GetRunThreat();
        float catchProb = (run - defRun) / (2 * (run + defRun));
        catchProb += .5f;

        return catchProb;
    }