.class public Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;
.super Lcom/badlogic/gdx/scenes/scene2d/utils/TextureRegionDrawable;
.source "TiledDrawable.java"


# instance fields
.field private final a:Lcom/badlogic/gdx/graphics/Color;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 30
    invoke-direct {p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/TextureRegionDrawable;-><init>()V

    .line 27
    new-instance v0, Lcom/badlogic/gdx/graphics/Color;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-direct {v0, v1, v1, v1, v1}, Lcom/badlogic/gdx/graphics/Color;-><init>(FFFF)V

    iput-object v0, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->a:Lcom/badlogic/gdx/graphics/Color;

    return-void
.end method

.method public constructor <init>(Lcom/badlogic/gdx/scenes/scene2d/utils/TextureRegionDrawable;)V
    .locals 1

    .line 38
    invoke-direct {p0, p1}, Lcom/badlogic/gdx/scenes/scene2d/utils/TextureRegionDrawable;-><init>(Lcom/badlogic/gdx/scenes/scene2d/utils/TextureRegionDrawable;)V

    .line 27
    new-instance p1, Lcom/badlogic/gdx/graphics/Color;

    const/high16 v0, 0x3f800000    # 1.0f

    invoke-direct {p1, v0, v0, v0, v0}, Lcom/badlogic/gdx/graphics/Color;-><init>(FFFF)V

    iput-object p1, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->a:Lcom/badlogic/gdx/graphics/Color;

    return-void
.end method


# virtual methods
.method public synthetic a(Lcom/badlogic/gdx/graphics/Color;)Lcom/badlogic/gdx/scenes/scene2d/utils/Drawable;
    .locals 0

    .line 26
    invoke-virtual {p0, p1}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->b(Lcom/badlogic/gdx/graphics/Color;)Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;

    move-result-object p1

    return-object p1
.end method

.method public a(Lcom/badlogic/gdx/graphics/g2d/Batch;FFFF)V
    .locals 29

    move-object/from16 v10, p1

    .line 42
    invoke-interface/range {p1 .. p1}, Lcom/badlogic/gdx/graphics/g2d/Batch;->e()F

    move-result v11

    .line 43
    invoke-interface/range {p1 .. p1}, Lcom/badlogic/gdx/graphics/g2d/Batch;->d()Lcom/badlogic/gdx/graphics/Color;

    move-result-object v2

    move-object/from16 v12, p0

    iget-object v3, v12, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->a:Lcom/badlogic/gdx/graphics/Color;

    invoke-virtual {v2, v3}, Lcom/badlogic/gdx/graphics/Color;->b(Lcom/badlogic/gdx/graphics/Color;)Lcom/badlogic/gdx/graphics/Color;

    move-result-object v2

    invoke-interface {v10, v2}, Lcom/badlogic/gdx/graphics/g2d/Batch;->a(Lcom/badlogic/gdx/graphics/Color;)V

    .line 45
    invoke-virtual/range {p0 .. p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->h()Lcom/badlogic/gdx/graphics/g2d/TextureRegion;

    move-result-object v13

    .line 46
    invoke-virtual {v13}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->r()I

    move-result v2

    int-to-float v14, v2

    invoke-virtual {v13}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->s()I

    move-result v2

    int-to-float v15, v2

    div-float v2, p4, v14

    float-to-int v9, v2

    div-float v2, p5, v15

    float-to-int v8, v2

    int-to-float v2, v9

    mul-float v2, v2, v14

    sub-float v16, p4, v2

    int-to-float v0, v8

    mul-float v0, v0, v15

    sub-float v17, p5, v0

    const/16 v18, 0x0

    move/from16 v19, p2

    move/from16 v0, p3

    const/4 v6, 0x0

    :goto_0
    if-ge v6, v9, :cond_1

    move/from16 v20, p3

    const/4 v7, 0x0

    :goto_1
    if-ge v7, v8, :cond_0

    move-object/from16 v0, p1

    move-object v1, v13

    move/from16 v2, v19

    move/from16 v3, v20

    move v4, v14

    move v5, v15

    .line 54
    invoke-interface/range {v0 .. v5}, Lcom/badlogic/gdx/graphics/g2d/Batch;->a(Lcom/badlogic/gdx/graphics/g2d/TextureRegion;FFFF)V

    add-float v20, v20, v15

    add-int/lit8 v7, v7, 0x1

    goto :goto_1

    :cond_0
    add-float v19, v19, v14

    add-int/lit8 v6, v6, 0x1

    move/from16 v0, v20

    goto :goto_0

    .line 59
    :cond_1
    invoke-virtual {v13}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->k()Lcom/badlogic/gdx/graphics/Texture;

    move-result-object v20

    .line 60
    invoke-virtual {v13}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->l()F

    move-result v21

    .line 61
    invoke-virtual {v13}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->o()F

    move-result v22

    const/16 v23, 0x0

    cmpl-float v1, v16, v23

    if-lez v1, :cond_3

    .line 64
    invoke-virtual/range {v20 .. v20}, Lcom/badlogic/gdx/graphics/Texture;->e()I

    move-result v0

    int-to-float v0, v0

    div-float v0, v16, v0

    add-float v24, v21, v0

    .line 65
    invoke-virtual {v13}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->m()F

    move-result v25

    move/from16 v26, p3

    const/4 v7, 0x0

    :goto_2
    if-ge v7, v8, :cond_2

    move-object/from16 v0, p1

    move-object/from16 v1, v20

    move/from16 v2, v19

    move/from16 v3, v26

    move/from16 v4, v16

    move v5, v15

    move/from16 v6, v21

    move/from16 v27, v7

    move/from16 v7, v22

    move/from16 v28, v8

    move/from16 v8, v24

    move v12, v9

    move/from16 v9, v25

    .line 68
    invoke-interface/range {v0 .. v9}, Lcom/badlogic/gdx/graphics/g2d/Batch;->a(Lcom/badlogic/gdx/graphics/Texture;FFFFFFFF)V

    add-float v26, v26, v15

    add-int/lit8 v7, v27, 0x1

    move v9, v12

    move/from16 v8, v28

    move-object/from16 v12, p0

    goto :goto_2

    :cond_2
    move v12, v9

    cmpl-float v0, v17, v23

    if-lez v0, :cond_4

    .line 73
    invoke-virtual/range {v20 .. v20}, Lcom/badlogic/gdx/graphics/Texture;->f()I

    move-result v0

    int-to-float v0, v0

    div-float v0, v17, v0

    sub-float v9, v22, v0

    move-object/from16 v0, p1

    move-object/from16 v1, v20

    move/from16 v2, v19

    move/from16 v3, v26

    move/from16 v4, v16

    move/from16 v5, v17

    move/from16 v6, v21

    move/from16 v7, v22

    move/from16 v8, v24

    .line 74
    invoke-interface/range {v0 .. v9}, Lcom/badlogic/gdx/graphics/g2d/Batch;->a(Lcom/badlogic/gdx/graphics/Texture;FFFFFFFF)V

    goto :goto_3

    :cond_3
    move v12, v9

    move/from16 v26, v0

    :cond_4
    :goto_3
    cmpl-float v0, v17, v23

    if-lez v0, :cond_5

    .line 79
    invoke-virtual {v13}, Lcom/badlogic/gdx/graphics/g2d/TextureRegion;->n()F

    move-result v13

    .line 80
    invoke-virtual/range {v20 .. v20}, Lcom/badlogic/gdx/graphics/Texture;->f()I

    move-result v0

    int-to-float v0, v0

    div-float v0, v17, v0

    sub-float v15, v22, v0

    move/from16 v16, p2

    const/4 v9, 0x0

    :goto_4
    if-ge v9, v12, :cond_5

    move-object/from16 v0, p1

    move-object/from16 v1, v20

    move/from16 v2, v16

    move/from16 v3, v26

    move v4, v14

    move/from16 v5, v17

    move/from16 v6, v21

    move/from16 v7, v22

    move v8, v13

    move/from16 v18, v9

    move v9, v15

    .line 83
    invoke-interface/range {v0 .. v9}, Lcom/badlogic/gdx/graphics/g2d/Batch;->a(Lcom/badlogic/gdx/graphics/Texture;FFFFFFFF)V

    add-float v16, v16, v14

    add-int/lit8 v9, v18, 0x1

    goto :goto_4

    .line 88
    :cond_5
    invoke-interface {v10, v11}, Lcom/badlogic/gdx/graphics/g2d/Batch;->a(F)V

    return-void
.end method

.method public a(Lcom/badlogic/gdx/graphics/g2d/Batch;FFFFFFFFF)V
    .locals 0

    .line 93
    new-instance p1, Ljava/lang/UnsupportedOperationException;

    invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V

    throw p1
.end method

.method public b(Lcom/badlogic/gdx/graphics/Color;)Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;
    .locals 2

    .line 101
    new-instance v0, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;

    invoke-direct {v0, p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;-><init>(Lcom/badlogic/gdx/scenes/scene2d/utils/TextureRegionDrawable;)V

    .line 102
    iget-object v1, v0, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->a:Lcom/badlogic/gdx/graphics/Color;

    invoke-virtual {v1, p1}, Lcom/badlogic/gdx/graphics/Color;->a(Lcom/badlogic/gdx/graphics/Color;)Lcom/badlogic/gdx/graphics/Color;

    .line 103
    invoke-virtual {p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->a()F

    move-result p1

    invoke-virtual {v0, p1}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->a(F)V

    .line 104
    invoke-virtual {p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->b()F

    move-result p1

    invoke-virtual {v0, p1}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->b(F)V

    .line 105
    invoke-virtual {p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->c()F

    move-result p1

    invoke-virtual {v0, p1}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->c(F)V

    .line 106
    invoke-virtual {p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->d()F

    move-result p1

    invoke-virtual {v0, p1}, Lcom/badlogic/gdx/scenes/scene2d/utils/TiledDrawable;->d(F)V

    return-object v0
.end method
