386 lines
9.2 KiB
Smali
386 lines
9.2 KiB
Smali
.class public Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;
|
|
.super Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$RangedNumericValue;
|
|
.source "ParticleEmitter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "ScaledNumericValue"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field a:[F
|
|
|
|
.field private d:[F
|
|
|
|
.field private e:F
|
|
|
|
.field private f:F
|
|
|
|
.field private g:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 4
|
|
|
|
.line 1221
|
|
invoke-direct {p0}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$RangedNumericValue;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1222
|
|
new-array v1, v0, [F
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/high16 v3, 0x3f800000 # 1.0f
|
|
|
|
aput v3, v1, v2
|
|
|
|
iput-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
.line 1223
|
|
new-array v0, v0, [F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aput v1, v0, v2
|
|
|
|
iput-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(F)F
|
|
.locals 6
|
|
|
|
.line 1283
|
|
iget-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
.line 1284
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
:goto_0
|
|
const/4 v4, -0x1
|
|
|
|
if-ge v3, v1, :cond_1
|
|
|
|
.line 1286
|
|
aget v5, v0, v3
|
|
|
|
cmpl-float v5, v5, p1
|
|
|
|
if-lez v5, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v3, -0x1
|
|
|
|
:goto_1
|
|
if-ne v3, v4, :cond_2
|
|
|
|
.line 1292
|
|
iget-object p1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
aget p1, p1, v1
|
|
|
|
return p1
|
|
|
|
.line 1293
|
|
:cond_2
|
|
iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
add-int/lit8 v2, v3, -0x1
|
|
|
|
.line 1295
|
|
aget v4, v1, v2
|
|
|
|
.line 1296
|
|
aget v2, v0, v2
|
|
|
|
.line 1297
|
|
aget v1, v1, v3
|
|
|
|
sub-float/2addr v1, v4
|
|
|
|
sub-float/2addr p1, v2
|
|
|
|
aget v0, v0, v3
|
|
|
|
sub-float/2addr v0, v2
|
|
|
|
div-float/2addr p1, v0
|
|
|
|
mul-float v1, v1, p1
|
|
|
|
add-float/2addr v4, v1
|
|
|
|
return v4
|
|
.end method
|
|
|
|
.method public a(Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;)V
|
|
.locals 4
|
|
|
|
.line 1329
|
|
invoke-super {p0, p1}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$RangedNumericValue;->a(Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$RangedNumericValue;)V
|
|
|
|
.line 1330
|
|
iget v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->f:F
|
|
|
|
iput v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->f:F
|
|
|
|
.line 1331
|
|
iget v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->e:F
|
|
|
|
iput v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->e:F
|
|
|
|
.line 1332
|
|
iget-object v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
array-length v0, v0
|
|
|
|
new-array v0, v0, [F
|
|
|
|
iput-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
.line 1333
|
|
iget-object v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
iget-object v2, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
array-length v2, v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v0, v3, v1, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 1334
|
|
iget-object v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
array-length v0, v0
|
|
|
|
new-array v0, v0, [F
|
|
|
|
iput-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
.line 1335
|
|
iget-object v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
iget-object v2, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
array-length v2, v2
|
|
|
|
invoke-static {v0, v3, v1, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 1336
|
|
iget-boolean p1, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->g:Z
|
|
|
|
iput-boolean p1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->g:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/io/BufferedReader;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1315
|
|
invoke-super {p0, p1}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$RangedNumericValue;->a(Ljava/io/BufferedReader;)V
|
|
|
|
.line 1316
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->b:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v0, "highMin"
|
|
|
|
.line 1317
|
|
invoke-static {p1, v0}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->d(Ljava/io/BufferedReader;Ljava/lang/String;)F
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->e:F
|
|
|
|
const-string v0, "highMax"
|
|
|
|
.line 1318
|
|
invoke-static {p1, v0}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->d(Ljava/io/BufferedReader;Ljava/lang/String;)F
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->f:F
|
|
|
|
const-string v0, "relative"
|
|
|
|
.line 1319
|
|
invoke-static {p1, v0}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->b(Ljava/io/BufferedReader;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->g:Z
|
|
|
|
const-string v0, "scalingCount"
|
|
|
|
.line 1320
|
|
invoke-static {p1, v0}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->c(Ljava/io/BufferedReader;Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [F
|
|
|
|
iput-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1321
|
|
:goto_0
|
|
iget-object v2, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
array-length v2, v2
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 1322
|
|
iget-object v2, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->d:[F
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "scaling"
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {p1, v3}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->d(Ljava/io/BufferedReader;Ljava/lang/String;)F
|
|
|
|
move-result v3
|
|
|
|
aput v3, v2, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v1, "timelineCount"
|
|
|
|
.line 1323
|
|
invoke-static {p1, v1}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->c(Ljava/io/BufferedReader;Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
new-array v1, v1, [F
|
|
|
|
iput-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
.line 1324
|
|
:goto_1
|
|
iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
array-length v1, v1
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
.line 1325
|
|
iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->a:[F
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "timeline"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {p1, v2}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->d(Ljava/io/BufferedReader;Ljava/lang/String;)F
|
|
|
|
move-result v2
|
|
|
|
aput v2, v1, v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()F
|
|
.locals 3
|
|
|
|
.line 1228
|
|
iget v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->e:F
|
|
|
|
iget v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->f:F
|
|
|
|
iget v2, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->e:F
|
|
|
|
sub-float/2addr v1, v2
|
|
|
|
invoke-static {}, Lcom/badlogic/gdx/math/MathUtils;->a()F
|
|
|
|
move-result v2
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
add-float/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public c()Z
|
|
.locals 1
|
|
|
|
.line 1274
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ScaledNumericValue;->g:Z
|
|
|
|
return v0
|
|
.end method
|