public void ChangeLocomotionType(string type) { switch (type) { case ("Instant"): m_locomotionType = locomotionType.Instant; break; case ("Fade"): m_locomotionType = locomotionType.Fade; break; } return; }
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; }