public static int scorePath(AIUnit aiUnit, PathNode path, Class type) {
        return (type == BuildColonyMission.class)
            ? BuildColonyMission.scorePath(aiUnit, path)
            : (type == CashInTreasureTrainMission.class)
            ? CashInTreasureTrainMission.scorePath(aiUnit, path)
            : (type == DefendSettlementMission.class)
            ? DefendSettlementMission.scorePath(aiUnit, path)
            : (type == MissionaryMission.class)
            ? MissionaryMission.scorePath(aiUnit, path)
            : (type == PioneeringMission.class)
            ? PioneeringMission.scorePath(aiUnit, path)
            : (type == ScoutingMission.class)
            ? ScoutingMission.scorePath(aiUnit, path)
            : (type == UnitSeekAndDestroyMission.class)
            ? UnitSeekAndDestroyMission.scorePath(aiUnit, path)
            : -1; // NYI
    }