} else if (e instanceof GunEmplacement) { return GUN_EMPLACEMENT;
    public static int determineUnitTypeCode(Entity e) {        int mm = e.getMovementMode();        if (e instanceof Infantry) {            return INFANTRY;        } else if (e instanceof VTOL) {            return VTOL;        } else if ((mm == IEntityMovementMode.NAVAL) || (mm == IEntityMovementMode.HYDROFOIL) || (mm == IEntityMovementMode.SUBMARINE)) {            return NAVAL;        } else if (e instanceof Tank) {            return TANK;        } else if (e instanceof Mech) {            return MEK;        } else if (e instanceof Protomech) {            return PROTOMEK;        } else {            throw new IllegalArgumentException("Unknown unit type");        }    }