vehicle.setFluff(fluff);
    public Entity getEntity() throws EntityLoadingException {        try  {            Tank vehicle = null;            if (movementType == HMVMovementType.TRACKED ||                    movementType == HMVMovementType.WHEELED ||                    movementType == HMVMovementType.HOVER ||                    movementType == HMVMovementType.DISPLACEMENT_HULL ||                    movementType == HMVMovementType.HYDROFOIL) {                vehicle = new Tank();            } else if (movementType == HMVMovementType.VTOL) {                vehicle = new VTOL();            } else {                throw new EntityLoadingException                    ( "Unsupported vehicle movement type:" + movementType );            }            vehicle.setChassis(name);            vehicle.setModel(model);            vehicle.setYear(year);            vehicle.setOmni(isOmni);            int techLevel = TechConstants.T_IS_LEVEL_3;            if (rulesLevel == 1) {                techLevel = TechConstants.T_IS_LEVEL_1;            } else if (rulesLevel == 2) {                techLevel = techType == HMVTechType.CLAN ? TechConstants.T_CLAN_LEVEL_2 : TechConstants.T_IS_LEVEL_2;            } else if (techType == HMVTechType.CLAN) {                techLevel = TechConstants.T_CLAN_LEVEL_3;            }            vehicle.setTechLevel(techLevel);            if (vehicle instanceof VTOL) {                vehicle.setMovementMode(IEntityMovementMode.VTOL);            } else {                vehicle.setMovementMode(                                       movementType == HMVMovementType.DISPLACEMENT_HULL ? IEntityMovementMode.NAVAL :                                       movementType == HMVMovementType.HYDROFOIL ? IEntityMovementMode.HYDROFOIL :                                       movementType == HMVMovementType.HOVER ? IEntityMovementMode.HOVER :                                       movementType == HMVMovementType.WHEELED ? IEntityMovementMode.WHEELED :                                       IEntityMovementMode.TRACKED);            }            //This next line sets the weight to a rounded value            //so that the suspension factor can be retrieved.  The            //real weight is set below that.  Why is tonnage not directly            //stated in the HMV file?!            vehicle.setWeight(roundedInternalStructure * 10); //temporary            int suspensionFactor = vehicle.getSuspensionFactor();            vehicle.setWeight((engineRating + suspensionFactor) / cruiseMP);            int engineFlags = Engine.TANK_ENGINE;            if (techType == HMVTechType.CLAN || engineTechType == HMVTechType.CLAN)                engineFlags |= Engine.CLAN_ENGINE;            vehicle.setEngine(new Engine(engineRating,                                        Engine.getEngineTypeByString(engineType.toString()),                                        engineFlags));            vehicle.setOriginalJumpMP(jumpMP);            // hmmm...            vehicle.setHasNoTurret(turretArmor == 0);            vehicle.autoSetInternal();            vehicle.setArmorType(armorType.toString());            vehicle.initializeArmor(frontArmor, Tank.LOC_FRONT);            vehicle.initializeArmor(leftArmor, Tank.LOC_LEFT);            vehicle.initializeArmor(rightArmor, Tank.LOC_RIGHT);            vehicle.initializeArmor(rearArmor, Tank.LOC_REAR);            if (vehicle instanceof VTOL) {                vehicle.initializeArmor(turretArmor, VTOL.LOC_ROTOR);            } else if (!vehicle.hasNoTurret()) {                vehicle.initializeArmor(turretArmor, Tank.LOC_TURRET);            }            addEquipment(vehicle, HMVWeaponLocation.FRONT, Tank.LOC_FRONT);            addEquipment(vehicle, HMVWeaponLocation.LEFT, Tank.LOC_LEFT);            addEquipment(vehicle, HMVWeaponLocation.RIGHT, Tank.LOC_RIGHT);            addEquipment(vehicle, HMVWeaponLocation.REAR, Tank.LOC_REAR);            if (!vehicle.hasNoTurret()) {                addEquipment(vehicle, HMVWeaponLocation.TURRET, Tank.LOC_TURRET);            }            addEquipment(vehicle, HMVWeaponLocation.BODY, Tank.LOC_BODY);            // Do we have any infantry/cargo bays?            if ( troopSpace > 0 ) {                vehicle.addTransporter( new TroopSpace( troopSpace ) );            }            return vehicle;        } catch (Exception e) {                e.printStackTrace();                throw new EntityLoadingException(e.getMessage());        }    }