case IEntityMovementMode.BIPED_SWIM: case IEntityMovementMode.QUAD_SWIM:
    public boolean canGoUp(int assumedElevation,Coords assumedPos) {        IHex hex = getGame().getBoard().getHex(assumedPos);        int altitude = assumedElevation + hex.surface();        int maxAlt = hex.surface();        switch(getMovementMode()) {        case IEntityMovementMode.INF_JUMP:        case IEntityMovementMode.INF_LEG:        case IEntityMovementMode.INF_MOTORIZED:            maxAlt += Math.max(0, hex.terrainLevel(Terrains.BLDG_ELEV));            break;        case IEntityMovementMode.VTOL:            maxAlt = hex.surface() + 50;            break;        case IEntityMovementMode.SUBMARINE:            maxAlt = hex.surface();            break;        default:            return false;        }        return (altitude < maxAlt);    }