Advertisement
edems96

FlappyBird c.smali

Mar 9th, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 17.33 KB | None | 0 0
  1. .class public Lcom/dotgears/c;
  2. .super Lorg/andengine/c/b/e;
  3.  
  4. # interfaces
  5. .implements Lorg/andengine/c/b/c;
  6.  
  7.  
  8. # static fields
  9. .field public static a:[Lorg/andengine/c/d/a;
  10.  
  11. .field static c:I
  12.  
  13.  
  14. # instance fields
  15. .field public final b:I
  16.  
  17. .field public d:Lcom/dotgears/GameActivity;
  18.  
  19. .field public e:I
  20.  
  21. .field f:[F
  22.  
  23. .field g:[F
  24.  
  25. .field h:Z
  26.  
  27. .field i:I
  28.  
  29. .field j:I
  30.  
  31.  
  32. # direct methods
  33. .method public constructor <init>(Lcom/dotgears/GameActivity;Lorg/andengine/opengl/c/c/c;)V
  34.     .locals 8
  35.  
  36.     const/16 v2, 0xa
  37.  
  38.     const/4 v7, 0x0
  39.  
  40.     const/16 v6, 0x32
  41.  
  42.     const/4 v1, 0x0
  43.  
  44.     invoke-direct {p0}, Lorg/andengine/c/b/e;-><init>()V
  45.  
  46.     iput v6, p0, Lcom/dotgears/c;->b:I
  47.  
  48.     new-array v0, v2, [F
  49.  
  50.     iput-object v0, p0, Lcom/dotgears/c;->f:[F
  51.  
  52.     new-array v0, v2, [F
  53.  
  54.     iput-object v0, p0, Lcom/dotgears/c;->g:[F
  55.  
  56.     iput-boolean v1, p0, Lcom/dotgears/c;->h:Z
  57.  
  58.     iput v1, p0, Lcom/dotgears/c;->i:I
  59.  
  60.     iput v1, p0, Lcom/dotgears/c;->j:I
  61.  
  62.     iput-object p1, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  63.  
  64.     const-string v0, "FlappyBird"
  65.  
  66.     invoke-virtual {p1, v0, v1}, Lcom/dotgears/GameActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
  67.  
  68.     move-result-object v0
  69.  
  70.     const-string v2, "score"
  71.    
  72.     const/4 v1, 0x5
  73.  
  74.     invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
  75.  
  76.     move-result v0
  77.  
  78.     iput v0, p0, Lcom/dotgears/c;->e:I
  79.  
  80.     new-instance v0, Lcom/dotgears/flappy/c;
  81.  
  82.     iget v2, p0, Lcom/dotgears/c;->e:I
  83.  
  84.     invoke-virtual {p1}, Lcom/dotgears/GameActivity;->getApplication()Landroid/app/Application;
  85.  
  86.     move-result-object v3
  87.  
  88.     invoke-virtual {v3}, Landroid/app/Application;->getResources()Landroid/content/res/Resources;
  89.  
  90.     move-result-object v3
  91.  
  92.     const/high16 v4, 0x7f04
  93.  
  94.     invoke-virtual {v3, v4}, Landroid/content/res/Resources;->openRawResource(I)Ljava/io/InputStream;
  95.  
  96.     move-result-object v3
  97.  
  98.     invoke-direct {v0, v2, v1, v3}, Lcom/dotgears/flappy/c;-><init>(IILjava/io/InputStream;)V
  99.  
  100.     sput-object v0, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  101.  
  102.     sget-object v0, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  103.  
  104.     invoke-virtual {v0}, Lcom/dotgears/g;->a()V
  105.  
  106.     invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
  107.  
  108.     move-result-wide v2
  109.  
  110.     long-to-int v0, v2
  111.  
  112.     invoke-static {v0}, Lcom/dotgears/j;->a(I)V
  113.  
  114.     new-array v0, v6, [Lorg/andengine/c/d/a;
  115.  
  116.     sput-object v0, Lcom/dotgears/c;->a:[Lorg/andengine/c/d/a;
  117.  
  118.     move v0, v1
  119.  
  120.     :goto_0
  121.     if-lt v0, v6, :cond_0
  122.  
  123.     invoke-virtual {p0, p0}, Lcom/dotgears/c;->a(Lorg/andengine/c/b/c;)V
  124.  
  125.     return-void
  126.  
  127.     :cond_0
  128.     invoke-virtual {p2}, Lorg/andengine/opengl/c/c/c;->i()Lorg/andengine/opengl/c/c/c;
  129.  
  130.     move-result-object v2
  131.  
  132.     sget-object v3, Lcom/dotgears/c;->a:[Lorg/andengine/c/d/a;
  133.  
  134.     new-instance v4, Lorg/andengine/c/d/a;
  135.  
  136.     invoke-virtual {p1}, Lcom/dotgears/GameActivity;->x()Lorg/andengine/b/a;
  137.  
  138.     move-result-object v5
  139.  
  140.     invoke-virtual {v5}, Lorg/andengine/b/a;->g()Lorg/andengine/opengl/d/e;
  141.  
  142.     move-result-object v5
  143.  
  144.     invoke-direct {v4, v7, v7, v2, v5}, Lorg/andengine/c/d/a;-><init>(FFLorg/andengine/opengl/c/c/b;Lorg/andengine/opengl/d/e;)V
  145.  
  146.     aput-object v4, v3, v0
  147.  
  148.     sget-object v2, Lcom/dotgears/c;->a:[Lorg/andengine/c/d/a;
  149.  
  150.     aget-object v2, v2, v0
  151.  
  152.     invoke-virtual {v2, v1}, Lorg/andengine/c/d/a;->a(Z)V
  153.  
  154.     sget-object v2, Lcom/dotgears/c;->a:[Lorg/andengine/c/d/a;
  155.  
  156.     aget-object v2, v2, v0
  157.  
  158.     invoke-virtual {p0, v2}, Lcom/dotgears/c;->b(Lorg/andengine/c/c;)V
  159.  
  160.     add-int/lit8 v0, v0, 0x1
  161.  
  162.     goto :goto_0
  163. .end method
  164.  
  165. .method public static a(IIIIFFFFF)V
  166.     .locals 10
  167.  
  168.     sget-object v1, Lcom/dotgears/c;->a:[Lorg/andengine/c/d/a;
  169.  
  170.     sget v2, Lcom/dotgears/c;->c:I
  171.  
  172.     aget-object v1, v1, v2
  173.  
  174.     int-to-float v2, p0
  175.  
  176.     int-to-float v3, p1
  177.  
  178.     int-to-float v4, p2
  179.  
  180.     int-to-float v5, p3
  181.  
  182.     move v6, p4
  183.  
  184.     move v7, p5
  185.  
  186.     move/from16 v8, p6
  187.  
  188.     move/from16 v9, p7
  189.  
  190.     invoke-virtual/range {v1 .. v9}, Lorg/andengine/c/d/a;->b(FFFFFFFF)V
  191.  
  192.     move/from16 v0, p8
  193.  
  194.     invoke-virtual {v1, v0}, Lorg/andengine/c/d/a;->b(F)V
  195.  
  196.     const/4 v2, 0x1
  197.  
  198.     invoke-virtual {v1, v2}, Lorg/andengine/c/d/a;->a(Z)V
  199.  
  200.     sget v1, Lcom/dotgears/c;->c:I
  201.  
  202.     add-int/lit8 v1, v1, 0x1
  203.  
  204.     sput v1, Lcom/dotgears/c;->c:I
  205.  
  206.     return-void
  207. .end method
  208.  
  209. .method public static a(IIIIFFFFFF)V
  210.     .locals 18
  211.  
  212.     sget-object v1, Lcom/dotgears/c;->a:[Lorg/andengine/c/d/a;
  213.  
  214.     sget v2, Lcom/dotgears/c;->c:I
  215.  
  216.     aget-object v1, v1, v2
  217.  
  218.     move/from16 v0, p0
  219.  
  220.     int-to-float v2, v0
  221.  
  222.     move/from16 v0, p1
  223.  
  224.     int-to-float v3, v0
  225.  
  226.     add-int v4, p0, p2
  227.  
  228.     int-to-float v4, v4
  229.  
  230.     const/high16 v5, 0x3f00
  231.  
  232.     mul-float/2addr v4, v5
  233.  
  234.     add-int v5, p1, p3
  235.  
  236.     int-to-float v5, v5
  237.  
  238.     const/high16 v6, 0x3f00
  239.  
  240.     mul-float/2addr v5, v6
  241.  
  242.     move/from16 v0, p9
  243.  
  244.     invoke-static {v2, v3, v4, v5, v0}, Lcom/dotgears/j;->a(FFFFF)V
  245.  
  246.     sget v2, Lcom/dotgears/j;->A:F
  247.  
  248.     move/from16 v0, p0
  249.  
  250.     int-to-float v3, v0
  251.  
  252.     sub-float v10, v2, v3
  253.  
  254.     sget v2, Lcom/dotgears/j;->B:F
  255.  
  256.     move/from16 v0, p1
  257.  
  258.     int-to-float v3, v0
  259.  
  260.     sub-float v11, v2, v3
  261.  
  262.     move/from16 v0, p0
  263.  
  264.     int-to-float v2, v0
  265.  
  266.     move/from16 v0, p3
  267.  
  268.     int-to-float v3, v0
  269.  
  270.     add-int v4, p0, p2
  271.  
  272.     int-to-float v4, v4
  273.  
  274.     const/high16 v5, 0x3f00
  275.  
  276.     mul-float/2addr v4, v5
  277.  
  278.     add-int v5, p1, p3
  279.  
  280.     int-to-float v5, v5
  281.  
  282.     const/high16 v6, 0x3f00
  283.  
  284.     mul-float/2addr v5, v6
  285.  
  286.     move/from16 v0, p9
  287.  
  288.     invoke-static {v2, v3, v4, v5, v0}, Lcom/dotgears/j;->a(FFFFF)V
  289.  
  290.     sget v2, Lcom/dotgears/j;->A:F
  291.  
  292.     move/from16 v0, p0
  293.  
  294.     int-to-float v3, v0
  295.  
  296.     sub-float v12, v2, v3
  297.  
  298.     sget v2, Lcom/dotgears/j;->B:F
  299.  
  300.     move/from16 v0, p1
  301.  
  302.     int-to-float v3, v0
  303.  
  304.     sub-float v13, v2, v3
  305.  
  306.     move/from16 v0, p2
  307.  
  308.     int-to-float v2, v0
  309.  
  310.     move/from16 v0, p1
  311.  
  312.     int-to-float v3, v0
  313.  
  314.     add-int v4, p0, p2
  315.  
  316.     int-to-float v4, v4
  317.  
  318.     const/high16 v5, 0x3f00
  319.  
  320.     mul-float/2addr v4, v5
  321.  
  322.     add-int v5, p1, p3
  323.  
  324.     int-to-float v5, v5
  325.  
  326.     const/high16 v6, 0x3f00
  327.  
  328.     mul-float/2addr v5, v6
  329.  
  330.     move/from16 v0, p9
  331.  
  332.     invoke-static {v2, v3, v4, v5, v0}, Lcom/dotgears/j;->a(FFFFF)V
  333.  
  334.     sget v2, Lcom/dotgears/j;->A:F
  335.  
  336.     move/from16 v0, p0
  337.  
  338.     int-to-float v3, v0
  339.  
  340.     sub-float v14, v2, v3
  341.  
  342.     sget v2, Lcom/dotgears/j;->B:F
  343.  
  344.     move/from16 v0, p1
  345.  
  346.     int-to-float v3, v0
  347.  
  348.     sub-float v15, v2, v3
  349.  
  350.     move/from16 v0, p2
  351.  
  352.     int-to-float v2, v0
  353.  
  354.     move/from16 v0, p3
  355.  
  356.     int-to-float v3, v0
  357.  
  358.     add-int v4, p0, p2
  359.  
  360.     int-to-float v4, v4
  361.  
  362.     const/high16 v5, 0x3f00
  363.  
  364.     mul-float/2addr v4, v5
  365.  
  366.     add-int v5, p1, p3
  367.  
  368.     int-to-float v5, v5
  369.  
  370.     const/high16 v6, 0x3f00
  371.  
  372.     mul-float/2addr v5, v6
  373.  
  374.     move/from16 v0, p9
  375.  
  376.     invoke-static {v2, v3, v4, v5, v0}, Lcom/dotgears/j;->a(FFFFF)V
  377.  
  378.     sget v2, Lcom/dotgears/j;->A:F
  379.  
  380.     move/from16 v0, p0
  381.  
  382.     int-to-float v3, v0
  383.  
  384.     sub-float v16, v2, v3
  385.  
  386.     sget v2, Lcom/dotgears/j;->B:F
  387.  
  388.     move/from16 v0, p1
  389.  
  390.     int-to-float v3, v0
  391.  
  392.     sub-float v17, v2, v3
  393.  
  394.     move/from16 v0, p0
  395.  
  396.     int-to-float v2, v0
  397.  
  398.     move/from16 v0, p1
  399.  
  400.     int-to-float v3, v0
  401.  
  402.     move/from16 v0, p2
  403.  
  404.     int-to-float v4, v0
  405.  
  406.     move/from16 v0, p3
  407.  
  408.     int-to-float v5, v0
  409.  
  410.     move/from16 v6, p4
  411.  
  412.     move/from16 v7, p5
  413.  
  414.     move/from16 v8, p6
  415.  
  416.     move/from16 v9, p7
  417.  
  418.     invoke-virtual/range {v1 .. v17}, Lorg/andengine/c/d/a;->a(FFFFFFFFFFFFFFFF)V
  419.  
  420.     move/from16 v0, p8
  421.  
  422.     invoke-virtual {v1, v0}, Lorg/andengine/c/d/a;->b(F)V
  423.  
  424.     const/4 v2, 0x1
  425.  
  426.     invoke-virtual {v1, v2}, Lorg/andengine/c/d/a;->a(Z)V
  427.  
  428.     sget v1, Lcom/dotgears/c;->c:I
  429.  
  430.     add-int/lit8 v1, v1, 0x1
  431.  
  432.     sput v1, Lcom/dotgears/c;->c:I
  433.  
  434.     return-void
  435. .end method
  436.  
  437.  
  438. # virtual methods
  439. .method public a()V
  440.     .locals 3
  441.  
  442.     const/4 v1, 0x0
  443.  
  444.     move v0, v1
  445.  
  446.     :goto_0
  447.     const/16 v2, 0x32
  448.  
  449.     if-lt v0, v2, :cond_0
  450.  
  451.     sput v1, Lcom/dotgears/c;->c:I
  452.  
  453.     return-void
  454.  
  455.     :cond_0
  456.     sget-object v2, Lcom/dotgears/c;->a:[Lorg/andengine/c/d/a;
  457.  
  458.     aget-object v2, v2, v0
  459.  
  460.     invoke-virtual {v2, v1}, Lorg/andengine/c/d/a;->a(Z)V
  461.  
  462.     add-int/lit8 v0, v0, 0x1
  463.  
  464.     goto :goto_0
  465. .end method
  466.  
  467. .method protected a(F)V
  468.     .locals 7
  469.  
  470.     const/4 v1, 0x0
  471.  
  472.     invoke-super {p0, p1}, Lorg/andengine/c/b/e;->a(F)V
  473.  
  474.     invoke-virtual {p0}, Lcom/dotgears/c;->a()V
  475.  
  476.     sget-object v0, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  477.  
  478.     iget-object v2, p0, Lcom/dotgears/c;->f:[F
  479.  
  480.     iget-object v3, p0, Lcom/dotgears/c;->g:[F
  481.  
  482.     invoke-virtual {v0, v2, v3}, Lcom/dotgears/g;->a([F[F)V
  483.  
  484.     iget-boolean v0, p0, Lcom/dotgears/c;->h:Z
  485.  
  486.     if-eqz v0, :cond_0
  487.  
  488.     sget-object v0, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  489.  
  490.     iget v2, p0, Lcom/dotgears/c;->i:I
  491.  
  492.     iget v3, p0, Lcom/dotgears/c;->j:I
  493.  
  494.     invoke-virtual {v0, v2, v3}, Lcom/dotgears/g;->a(II)V
  495.  
  496.     sget-object v0, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  497.  
  498.     iget v2, p0, Lcom/dotgears/c;->i:I
  499.  
  500.     iget v3, p0, Lcom/dotgears/c;->j:I
  501.  
  502.     iget v4, p0, Lcom/dotgears/c;->i:I
  503.  
  504.     iget v5, p0, Lcom/dotgears/c;->j:I
  505.  
  506.     invoke-virtual {v0, v2, v3, v4, v5}, Lcom/dotgears/g;->a(IIII)V
  507.  
  508.     iput-boolean v1, p0, Lcom/dotgears/c;->h:Z
  509.  
  510.     :cond_0
  511.     sget-object v0, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  512.  
  513.     invoke-virtual {v0}, Lcom/dotgears/g;->b()V
  514.  
  515.     move v0, v1
  516.  
  517.     :goto_0
  518.     sget-object v2, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  519.  
  520.     iget v2, v2, Lcom/dotgears/g;->v:I
  521.  
  522.     if-lt v0, v2, :cond_1
  523.  
  524.     return-void
  525.  
  526.     :cond_1
  527.     sget-object v2, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  528.  
  529.     iget-object v2, v2, Lcom/dotgears/g;->w:[I
  530.  
  531.     aget v2, v2, v0
  532.  
  533.     packed-switch v2, :pswitch_data_0
  534.  
  535.     :cond_2
  536.     :goto_1
  537.     :pswitch_0
  538.     add-int/lit8 v0, v0, 0x1
  539.  
  540.     goto :goto_0
  541.  
  542.     :pswitch_1
  543.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  544.  
  545.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->d()V
  546.  
  547.     goto :goto_1
  548.  
  549.     :pswitch_2
  550.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  551.  
  552.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->c()V
  553.  
  554.     goto :goto_1
  555.  
  556.     :pswitch_3
  557.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  558.  
  559.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->d()V
  560.  
  561.     goto :goto_1
  562.  
  563.     :pswitch_4
  564.     sget-object v2, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  565.  
  566.     iget-object v2, v2, Lcom/dotgears/g;->x:[D
  567.  
  568.     aget-wide v2, v2, v0
  569.  
  570.     double-to-int v2, v2
  571.  
  572.     iget-object v3, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  573.  
  574.     invoke-virtual {v3}, Lcom/dotgears/GameActivity;->o()Z
  575.  
  576.     move-result v3
  577.  
  578.     if-eqz v3, :cond_3
  579.  
  580.     iget-object v3, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  581.  
  582.     iget-object v3, v3, Lcom/dotgears/GameActivity;->g:Lcom/google/example/games/basegameutils/a;
  583.  
  584.     invoke-virtual {v3}, Lcom/google/example/games/basegameutils/a;->b()Lcom/google/android/gms/games/c;
  585.  
  586.     move-result-object v3
  587.  
  588.     const-string v4, "CgkI5J2sk6QXEAIQAA"
  589.  
  590.     int-to-long v5, v2
  591.  
  592.     invoke-virtual {v3, v4, v5, v6}, Lcom/google/android/gms/games/c;->a(Ljava/lang/String;J)V
  593.  
  594.     :cond_3
  595.     iget v3, p0, Lcom/dotgears/c;->e:I
  596.  
  597.     if-le v2, v3, :cond_2
  598.  
  599.     iget-object v3, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  600.  
  601.     const-string v4, "FlappyBird"
  602.  
  603.     invoke-virtual {v3, v4, v1}, Lcom/dotgears/GameActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
  604.  
  605.     move-result-object v3
  606.  
  607.     invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
  608.  
  609.     move-result-object v3
  610.  
  611.     invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;
  612.  
  613.     const-string v4, "score"
  614.  
  615.     sget-object v5, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  616.  
  617.     iget-object v5, v5, Lcom/dotgears/g;->x:[D
  618.  
  619.     aget-wide v5, v5, v0
  620.  
  621.     double-to-int v5, v5
  622.    
  623.     invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
  624.  
  625.     invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z
  626.  
  627.     iput v2, p0, Lcom/dotgears/c;->e:I
  628.  
  629.     goto :goto_1
  630.  
  631.     :pswitch_5
  632.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  633.  
  634.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->o()Z
  635.  
  636.     move-result v2
  637.  
  638.     if-eqz v2, :cond_4
  639.  
  640.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  641.  
  642.     iget-object v3, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  643.  
  644.     invoke-virtual {v3}, Lcom/dotgears/GameActivity;->n()Lcom/google/android/gms/games/c;
  645.  
  646.     move-result-object v3
  647.  
  648.     const-string v4, "CgkI5J2sk6QXEAIQAA"
  649.  
  650.     invoke-virtual {v3, v4}, Lcom/google/android/gms/games/c;->a(Ljava/lang/String;)Landroid/content/Intent;
  651.  
  652.     move-result-object v3
  653.  
  654.     const/4 v4, 0x1
  655.  
  656.     invoke-virtual {v2, v3, v4}, Lcom/dotgears/GameActivity;->startActivityForResult(Landroid/content/Intent;I)V
  657.  
  658.     goto :goto_1
  659.  
  660.     :cond_4
  661.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  662.  
  663.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->p()V
  664.  
  665.     goto :goto_1
  666.  
  667.     :pswitch_6
  668.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  669.  
  670.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->e()V
  671.  
  672.     goto :goto_1
  673.  
  674.     :pswitch_7
  675.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  676.  
  677.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->h()V
  678.  
  679.     goto/16 :goto_1
  680.  
  681.     :pswitch_8
  682.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  683.  
  684.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->f()V
  685.  
  686.     goto/16 :goto_1
  687.  
  688.     :pswitch_9
  689.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  690.  
  691.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->i()V
  692.  
  693.     goto/16 :goto_1
  694.  
  695.     :pswitch_a
  696.     iget-object v2, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  697.  
  698.     invoke-virtual {v2}, Lcom/dotgears/GameActivity;->g()V
  699.  
  700.     goto/16 :goto_1
  701.  
  702.     :pswitch_b
  703.     new-instance v2, Landroid/content/Intent;
  704.  
  705.     const-string v3, "android.intent.action.VIEW"
  706.  
  707.     invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
  708.  
  709.     const-string v3, "http://www.amazon.com/gp/mas/dl/android?p=com.dotgears.flappybird"
  710.  
  711.     invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
  712.  
  713.     move-result-object v3
  714.  
  715.     invoke-virtual {v2, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
  716.  
  717.     iget-object v3, p0, Lcom/dotgears/c;->d:Lcom/dotgears/GameActivity;
  718.  
  719.     invoke-virtual {v3, v2}, Lcom/dotgears/GameActivity;->startActivity(Landroid/content/Intent;)V
  720.  
  721.     goto/16 :goto_1
  722.  
  723.     nop
  724.  
  725.     :pswitch_data_0
  726.     .packed-switch 0x0
  727.         :pswitch_4
  728.         :pswitch_5
  729.         :pswitch_b
  730.         :pswitch_0
  731.         :pswitch_0
  732.         :pswitch_0
  733.         :pswitch_1
  734.         :pswitch_2
  735.         :pswitch_3
  736.         :pswitch_6
  737.         :pswitch_7
  738.         :pswitch_8
  739.         :pswitch_a
  740.         :pswitch_9
  741.     .end packed-switch
  742. .end method
  743.  
  744. .method public a(Lorg/andengine/c/b/e;Lorg/andengine/input/a/a;)Z
  745.     .locals 4
  746.  
  747.     const/4 v3, 0x1
  748.  
  749.     const/high16 v2, -0x3d38
  750.  
  751.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->f()Z
  752.  
  753.     move-result v0
  754.  
  755.     if-eqz v0, :cond_2
  756.  
  757.     sget-object v0, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  758.  
  759.     if-eqz v0, :cond_0
  760.  
  761.     iput-boolean v3, p0, Lcom/dotgears/c;->h:Z
  762.  
  763.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->b()F
  764.  
  765.     move-result v0
  766.  
  767.     float-to-int v0, v0
  768.  
  769.     iput v0, p0, Lcom/dotgears/c;->i:I
  770.  
  771.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->c()F
  772.  
  773.     move-result v0
  774.  
  775.     float-to-int v0, v0
  776.  
  777.     iput v0, p0, Lcom/dotgears/c;->j:I
  778.  
  779.     :cond_0
  780.     iget-object v0, p0, Lcom/dotgears/c;->f:[F
  781.  
  782.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->d()I
  783.  
  784.     move-result v1
  785.  
  786.     rem-int/lit8 v1, v1, 0xa
  787.  
  788.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->b()F
  789.  
  790.     move-result v2
  791.  
  792.     aput v2, v0, v1
  793.  
  794.     iget-object v0, p0, Lcom/dotgears/c;->g:[F
  795.  
  796.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->d()I
  797.  
  798.     move-result v1
  799.  
  800.     rem-int/lit8 v1, v1, 0xa
  801.  
  802.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->c()F
  803.  
  804.     move-result v2
  805.  
  806.     aput v2, v0, v1
  807.  
  808.     :cond_1
  809.     :goto_0
  810.     return v3
  811.  
  812.     :cond_2
  813.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->g()Z
  814.  
  815.     move-result v0
  816.  
  817.     if-nez v0, :cond_3
  818.  
  819.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->j()Z
  820.  
  821.     move-result v0
  822.  
  823.     if-nez v0, :cond_3
  824.  
  825.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->i()Z
  826.  
  827.     move-result v0
  828.  
  829.     if-eqz v0, :cond_1
  830.  
  831.     :cond_3
  832.     sget-object v0, Lcom/dotgears/g;->D:Lcom/dotgears/g;
  833.  
  834.     iget-object v0, p0, Lcom/dotgears/c;->f:[F
  835.  
  836.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->d()I
  837.  
  838.     move-result v1
  839.  
  840.     rem-int/lit8 v1, v1, 0xa
  841.  
  842.     aput v2, v0, v1
  843.  
  844.     iget-object v0, p0, Lcom/dotgears/c;->g:[F
  845.  
  846.     invoke-virtual {p2}, Lorg/andengine/input/a/a;->d()I
  847.  
  848.     move-result v1
  849.  
  850.     rem-int/lit8 v1, v1, 0xa
  851.  
  852.     aput v2, v0, v1
  853.  
  854.     goto :goto_0
  855. .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement