.class public Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;
.super Lcom/badlogic/gdx/scenes/scene2d/utils/BaseDrawable;
.source "SpriteDrawable.java"

# interfaces
.implements Lcom/badlogic/gdx/scenes/scene2d/utils/TransformDrawable;


# instance fields
.field private a:Lcom/badlogic/gdx/graphics/g2d/Sprite;


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

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

    return-void
.end method

.method public constructor <init>(Lcom/badlogic/gdx/graphics/g2d/Sprite;)V
    .locals 0

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

    .line 34
    invoke-virtual {p0, p1}, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a(Lcom/badlogic/gdx/graphics/g2d/Sprite;)V

    return-void
.end method


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

    .line 86
    iget-object v0, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    instance-of v0, v0, Lcom/badlogic/gdx/graphics/g2d/TextureAtlas$AtlasSprite;

    if-eqz v0, :cond_0

    .line 87
    new-instance v0, Lcom/badlogic/gdx/graphics/g2d/TextureAtlas$AtlasSprite;

    iget-object v1, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    check-cast v1, Lcom/badlogic/gdx/graphics/g2d/TextureAtlas$AtlasSprite;

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/graphics/g2d/TextureAtlas$AtlasSprite;-><init>(Lcom/badlogic/gdx/graphics/g2d/TextureAtlas$AtlasSprite;)V

    goto :goto_0

    .line 89
    :cond_0
    new-instance v0, Lcom/badlogic/gdx/graphics/g2d/Sprite;

    iget-object v1, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

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

    .line 90
    :goto_0
    invoke-virtual {v0, p1}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(Lcom/badlogic/gdx/graphics/Color;)V

    .line 91
    invoke-virtual {p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->e()F

    move-result p1

    invoke-virtual {p0}, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->f()F

    move-result v1

    invoke-virtual {v0, p1, v1}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(FF)V

    .line 92
    new-instance p1, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;

    invoke-direct {p1, v0}, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;-><init>(Lcom/badlogic/gdx/graphics/g2d/Sprite;)V

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

    move-result v0

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

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

    move-result v0

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

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

    move-result v0

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

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

    move-result v0

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

    return-object p1
.end method

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

    .line 43
    iget-object v0, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {v0}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->h()Lcom/badlogic/gdx/graphics/Color;

    move-result-object v0

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

    move-result v1

    .line 45
    iget-object v2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

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

    move-result-object v3

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

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(Lcom/badlogic/gdx/graphics/Color;)V

    .line 47
    iget-object v2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(F)V

    .line 48
    iget-object v2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    const/high16 v3, 0x3f800000    # 1.0f

    invoke-virtual {v2, v3, v3}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->d(FF)V

    .line 49
    iget-object v2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {v2, p2, p3, p4, p5}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(FFFF)V

    .line 50
    iget-object p2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {p2, p1}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(Lcom/badlogic/gdx/graphics/g2d/Batch;)V

    .line 52
    iget-object p2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {p2, v0}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(Lcom/badlogic/gdx/graphics/Color;)V

    .line 53
    invoke-interface {p1, v1}, 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 4

    .line 59
    iget-object v0, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {v0}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->h()Lcom/badlogic/gdx/graphics/Color;

    move-result-object v0

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

    move-result v1

    .line 61
    iget-object v2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

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

    move-result-object v3

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

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(Lcom/badlogic/gdx/graphics/Color;)V

    .line 63
    iget-object v2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {v2, p4, p5}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->c(FF)V

    .line 64
    iget-object p4, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {p4, p10}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(F)V

    .line 65
    iget-object p4, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {p4, p8, p9}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->d(FF)V

    .line 66
    iget-object p4, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {p4, p2, p3, p6, p7}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(FFFF)V

    .line 67
    iget-object p2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {p2, p1}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(Lcom/badlogic/gdx/graphics/g2d/Batch;)V

    .line 69
    iget-object p2, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    invoke-virtual {p2, v0}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->a(Lcom/badlogic/gdx/graphics/Color;)V

    .line 70
    invoke-interface {p1, v1}, Lcom/badlogic/gdx/graphics/g2d/Batch;->a(F)V

    return-void
.end method

.method public a(Lcom/badlogic/gdx/graphics/g2d/Sprite;)V
    .locals 1

    .line 74
    iput-object p1, p0, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->a:Lcom/badlogic/gdx/graphics/g2d/Sprite;

    .line 75
    invoke-virtual {p1}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->d()F

    move-result v0

    invoke-virtual {p0, v0}, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->e(F)V

    .line 76
    invoke-virtual {p1}, Lcom/badlogic/gdx/graphics/g2d/Sprite;->e()F

    move-result p1

    invoke-virtual {p0, p1}, Lcom/badlogic/gdx/scenes/scene2d/utils/SpriteDrawable;->f(F)V

    return-void
.end method
