Mech mech = null;
if ((chassisType == ChassisType.QUADRAPED_OMNI)
|| (chassisType == ChassisType.QUADRAPED)) {
mech = new QuadMech(gyroType, cockpitType);
} else if (chassisType == ChassisType.ARMLESS) {
mech = new ArmlessMech(gyroType, cockpitType);
} else {
mech = new BipedMech(gyroType, cockpitType);
}
mech.setChassis(name);