Ejemplo n.º 1
0
    public void ChangeLocomotionType(string type)
    {
        switch (type)
        {
        case ("Instant"):
            m_locomotionType = locomotionType.Instant;
            break;

        case ("Fade"):
            m_locomotionType = locomotionType.Fade;
            break;
        }
        return;
    }
Ejemplo n.º 2
0
    public float LocomotionCompatabilityCheck(locomotionType strat)
    {
        float okHexes = 0;
        float score = 0;

        foreach(Hex habitat in habitats){
            if(habitat.MeetsLocomotionRequirements(strat)){
                okHexes++;
            }
            else
            {
                okHexes -= .5f;
            }
        }

        score = okHexes / habitats.Count;

        return score;
    }