.class public Lcom/esotericsoftware/spine/Slot;
.super Ljava/lang/Object;
.source "Slot.java"


# instance fields
.field final a:Lcom/esotericsoftware/spine/SlotData;

.field final b:Lcom/esotericsoftware/spine/Bone;

.field final c:Lcom/badlogic/gdx/graphics/Color;

.field final d:Lcom/badlogic/gdx/graphics/Color;

.field e:Lcom/esotericsoftware/spine/attachments/Attachment;

.field private f:F

.field private g:Lcom/badlogic/gdx/utils/FloatArray;


# direct methods
.method public constructor <init>(Lcom/esotericsoftware/spine/SlotData;Lcom/esotericsoftware/spine/Bone;)V
    .locals 1

    .line 50
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

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

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

    iput-object v0, p0, Lcom/esotericsoftware/spine/Slot;->c:Lcom/badlogic/gdx/graphics/Color;

    .line 48
    new-instance v0, Lcom/badlogic/gdx/utils/FloatArray;

    invoke-direct {v0}, Lcom/badlogic/gdx/utils/FloatArray;-><init>()V

    iput-object v0, p0, Lcom/esotericsoftware/spine/Slot;->g:Lcom/badlogic/gdx/utils/FloatArray;

    if-eqz p1, :cond_2

    if-eqz p2, :cond_1

    .line 53
    iput-object p1, p0, Lcom/esotericsoftware/spine/Slot;->a:Lcom/esotericsoftware/spine/SlotData;

    .line 54
    iput-object p2, p0, Lcom/esotericsoftware/spine/Slot;->b:Lcom/esotericsoftware/spine/Bone;

    .line 55
    iget-object p1, p1, Lcom/esotericsoftware/spine/SlotData;->e:Lcom/badlogic/gdx/graphics/Color;

    if-nez p1, :cond_0

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    new-instance p1, Lcom/badlogic/gdx/graphics/Color;

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

    :goto_0
    iput-object p1, p0, Lcom/esotericsoftware/spine/Slot;->d:Lcom/badlogic/gdx/graphics/Color;

    .line 56
    invoke-virtual {p0}, Lcom/esotericsoftware/spine/Slot;->f()V

    return-void

    .line 52
    :cond_1
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "bone cannot be null."

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

    throw p1

    .line 51
    :cond_2
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "data cannot be null."

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

    throw p1
.end method


# virtual methods
.method public a()Lcom/esotericsoftware/spine/SlotData;
    .locals 1

    .line 73
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->a:Lcom/esotericsoftware/spine/SlotData;

    return-object v0
.end method

.method public a(Lcom/esotericsoftware/spine/attachments/Attachment;)V
    .locals 1

    .line 107
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->e:Lcom/esotericsoftware/spine/attachments/Attachment;

    if-ne v0, p1, :cond_0

    return-void

    .line 108
    :cond_0
    iput-object p1, p0, Lcom/esotericsoftware/spine/Slot;->e:Lcom/esotericsoftware/spine/attachments/Attachment;

    .line 109
    iget-object p1, p0, Lcom/esotericsoftware/spine/Slot;->b:Lcom/esotericsoftware/spine/Bone;

    iget-object p1, p1, Lcom/esotericsoftware/spine/Bone;->b:Lcom/esotericsoftware/spine/Skeleton;

    iget p1, p1, Lcom/esotericsoftware/spine/Skeleton;->l:F

    iput p1, p0, Lcom/esotericsoftware/spine/Slot;->f:F

    .line 110
    iget-object p1, p0, Lcom/esotericsoftware/spine/Slot;->g:Lcom/badlogic/gdx/utils/FloatArray;

    invoke-virtual {p1}, Lcom/badlogic/gdx/utils/FloatArray;->b()V

    return-void
.end method

.method public b()Lcom/esotericsoftware/spine/Bone;
    .locals 1

    .line 78
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->b:Lcom/esotericsoftware/spine/Bone;

    return-object v0
.end method

.method public c()Lcom/esotericsoftware/spine/Skeleton;
    .locals 1

    .line 83
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->b:Lcom/esotericsoftware/spine/Bone;

    iget-object v0, v0, Lcom/esotericsoftware/spine/Bone;->b:Lcom/esotericsoftware/spine/Skeleton;

    return-object v0
.end method

.method public d()Lcom/badlogic/gdx/graphics/Color;
    .locals 1

    .line 89
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->c:Lcom/badlogic/gdx/graphics/Color;

    return-object v0
.end method

.method public e()Lcom/badlogic/gdx/utils/FloatArray;
    .locals 1

    .line 128
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->g:Lcom/badlogic/gdx/utils/FloatArray;

    return-object v0
.end method

.method public f()V
    .locals 3

    .line 138
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->c:Lcom/badlogic/gdx/graphics/Color;

    iget-object v1, p0, Lcom/esotericsoftware/spine/Slot;->a:Lcom/esotericsoftware/spine/SlotData;

    iget-object v1, v1, Lcom/esotericsoftware/spine/SlotData;->d:Lcom/badlogic/gdx/graphics/Color;

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

    .line 139
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->d:Lcom/badlogic/gdx/graphics/Color;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->d:Lcom/badlogic/gdx/graphics/Color;

    iget-object v1, p0, Lcom/esotericsoftware/spine/Slot;->a:Lcom/esotericsoftware/spine/SlotData;

    iget-object v1, v1, Lcom/esotericsoftware/spine/SlotData;->e:Lcom/badlogic/gdx/graphics/Color;

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

    .line 140
    :cond_0
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->a:Lcom/esotericsoftware/spine/SlotData;

    iget-object v0, v0, Lcom/esotericsoftware/spine/SlotData;->f:Ljava/lang/String;

    const/4 v1, 0x0

    if-nez v0, :cond_1

    .line 141
    invoke-virtual {p0, v1}, Lcom/esotericsoftware/spine/Slot;->a(Lcom/esotericsoftware/spine/attachments/Attachment;)V

    goto :goto_0

    .line 143
    :cond_1
    iput-object v1, p0, Lcom/esotericsoftware/spine/Slot;->e:Lcom/esotericsoftware/spine/attachments/Attachment;

    .line 144
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->b:Lcom/esotericsoftware/spine/Bone;

    iget-object v0, v0, Lcom/esotericsoftware/spine/Bone;->b:Lcom/esotericsoftware/spine/Skeleton;

    iget-object v1, p0, Lcom/esotericsoftware/spine/Slot;->a:Lcom/esotericsoftware/spine/SlotData;

    iget v1, v1, Lcom/esotericsoftware/spine/SlotData;->a:I

    iget-object v2, p0, Lcom/esotericsoftware/spine/Slot;->a:Lcom/esotericsoftware/spine/SlotData;

    iget-object v2, v2, Lcom/esotericsoftware/spine/SlotData;->f:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/esotericsoftware/spine/Skeleton;->a(ILjava/lang/String;)Lcom/esotericsoftware/spine/attachments/Attachment;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/esotericsoftware/spine/Slot;->a(Lcom/esotericsoftware/spine/attachments/Attachment;)V

    :goto_0
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .line 149
    iget-object v0, p0, Lcom/esotericsoftware/spine/Slot;->a:Lcom/esotericsoftware/spine/SlotData;

    iget-object v0, v0, Lcom/esotericsoftware/spine/SlotData;->b:Ljava/lang/String;

    return-object v0
.end method
