public static float generateWeightFromClass(WeightClass.WClass wClass) { if (wClass.Equals(WeightClass.WClass.FlyWeight)) { return((float)generateRandomInt(100, 118)); } else if (wClass.Equals(WeightClass.WClass.LightWeight)) { return((float)generateRandomInt(120, 138)); } else if (wClass.Equals(WeightClass.WClass.WelterWeight)) { return((float)generateRandomInt(140, 158)); } else if (wClass.Equals(WeightClass.WClass.MiddleWeight)) { return((float)generateRandomInt(160, 173)); } else if (wClass.Equals(WeightClass.WClass.CruiserWeight)) { return((float)generateRandomInt(175, 198)); } else if (wClass.Equals(WeightClass.WClass.HeavyWeight)) { return((float)generateRandomInt(200, 225)); } return((float)generateRandomInt(100, 118)); }
public static List <Type> getClassesBasedOnWeight(WeightClass.WClass wClass) { if (wClass.Equals(WeightClass.WClass.FlyWeight)) { return(new List <Type> (new Type[] { Type.Ranger, Type.Monk, Type.Bullseye, Type.DoubleEdge })); } else if (wClass.Equals(WeightClass.WClass.LightWeight)) { return(new List <Type> (new Type[] { Type.Ranger, Type.Monk, Type.Bullseye, Type.DoubleEdge })); } else if (wClass.Equals(WeightClass.WClass.WelterWeight)) { return(new List <Type> (new Type[] { Type.Ranger, Type.Monk, Type.Gladiator, Type.BushWacker, Type.DoubleEdge })); } else if (wClass.Equals(WeightClass.WClass.MiddleWeight)) { return(new List <Type> (new Type[] { Type.Legion, Type.Gladiator, Type.BushWacker, Type.Juggernaut })); } else if (wClass.Equals(WeightClass.WClass.CruiserWeight)) { return(new List <Type> (new Type[] { Type.Legion, Type.GentleGiant, Type.Slugger, Type.Juggernaut })); } else if (wClass.Equals(WeightClass.WClass.HeavyWeight)) { return(new List <Type> (new Type[] { Type.Legion, Type.GentleGiant, Type.Slugger, Type.Juggernaut })); } return(new List <Type> (new Type[] { Type.Ranger, Type.Monk, Type.Bullseye, Type.DoubleEdge })); }
public static bool isBoxerEligibleForType(WeightClass.WClass wClass, Type type) { if (type.Equals(Type.Legion)) { return((wClass.Equals(WeightClass.WClass.CruiserWeight) || wClass.Equals(WeightClass.WClass.HeavyWeight) || wClass.Equals(WeightClass.WClass.MiddleWeight)) ? true : false); } else if (type.Equals(Type.Ranger)) { return((wClass.Equals(WeightClass.WClass.FlyWeight) || wClass.Equals(WeightClass.WClass.LightWeight) || wClass.Equals(WeightClass.WClass.WelterWeight)) ? true : false); } else if (type.Equals(Type.Gladiator)) { return((wClass.Equals(WeightClass.WClass.WelterWeight) || wClass.Equals(WeightClass.WClass.MiddleWeight)) ? true : false); } else if (type.Equals(Type.Monk)) { return((wClass.Equals(WeightClass.WClass.FlyWeight) || wClass.Equals(WeightClass.WClass.LightWeight) || wClass.Equals(WeightClass.WClass.WelterWeight)) ? true : false); } else if (type.Equals(Type.BushWacker)) { return((wClass.Equals(WeightClass.WClass.WelterWeight) || wClass.Equals(WeightClass.WClass.MiddleWeight)) ? true : false); } else if (type.Equals(Type.Bullseye)) { return((wClass.Equals(WeightClass.WClass.FlyWeight) || wClass.Equals(WeightClass.WClass.LightWeight)) ? true : false); } else if (type.Equals(Type.GentleGiant)) { return((wClass.Equals(WeightClass.WClass.CruiserWeight) || wClass.Equals(WeightClass.WClass.HeavyWeight)) ? true : false); } else if (type.Equals(Type.Slugger)) { return((wClass.Equals(WeightClass.WClass.CruiserWeight) || wClass.Equals(WeightClass.WClass.HeavyWeight)) ? true : false); } else if (type.Equals(Type.Juggernaut)) { return((wClass.Equals(WeightClass.WClass.CruiserWeight) || wClass.Equals(WeightClass.WClass.HeavyWeight) || wClass.Equals(WeightClass.WClass.MiddleWeight)) ? true : false); } else if (type.Equals(Type.DoubleEdge)) { return((wClass.Equals(WeightClass.WClass.FlyWeight) || wClass.Equals(WeightClass.WClass.LightWeight) || wClass.Equals(WeightClass.WClass.WelterWeight)) ? true : false); } return((wClass.Equals(WeightClass.WClass.FlyWeight) || wClass.Equals(WeightClass.WClass.LightWeight) || wClass.Equals(WeightClass.WClass.WelterWeight)) ? true : false); }