b.java
来自「JAVA游戏3D赛车」· Java 代码 · 共 330 行
JAVA
330 行
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
import com.mascotcapsule.micro3d.v3.FigureLayout;
import com.mascotcapsule.micro3d.v3.Graphics3D;
import javax.microedition.lcdui.Graphics;
public class b
{
public b(int l, int i1, int j1)
{
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld = null;
b_h_fld = new h();
a_com_mascotcapsule_micro3d_v3_FigureLayout_fld = new FigureLayout();
c_h_fld = new h();
b_com_mascotcapsule_micro3d_v3_FigureLayout_fld = new FigureLayout();
i = 0;
a_int_fld = 0;
a_h_fld = new h();
a_float_fld = 0.0F;
a_int_array1d_fld = null;
d_int_array1d_fld = null;
c_int_array1d_fld = null;
b_int_array1d_fld = null;
k = 0;
e = 0;
j = 0;
h = 0;
f = 0;
c_float_array1d_fld = new float[3];
a_float_array1d_fld = new float[3];
d_float_array1d_fld = new float[3];
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld = new Graphics3D();
k = i1;
j = l;
e = j1;
f = k / 2;
h = j / 2;
byte byte0 = 26;
a_int_array1d_fld = new int[byte0 * 12];
c_int_array1d_fld = new int[byte0 * 12];
b_int_array1d_fld = new int[(byte0 * 12) / 3];
d_int_array1d_fld = new int[byte0 * 8];
}
public void a(int l)
{
b_int_fld = l;
}
public void a(float f1, float f2, float f3, float f4)
{
g = (int)f3 + 1;
c_int_fld = 10 * (int)f4;
d_int_fld = (int)(f1 * 11.4F);
a_com_mascotcapsule_micro3d_v3_FigureLayout_fld.setPerspective(g, c_int_fld, d_int_fld);
b_com_mascotcapsule_micro3d_v3_FigureLayout_fld.setPerspective(g, c_int_fld, d_int_fld);
float f5 = 0.577F;
float f6 = (float)(k / j) * f5;
float af[] = {
1.0F / f6, 0.0F, 0.0F, 0.0F, 0.0F, 1.0F / f5, 0.0F, 0.0F, 0.0F, 0.0F,
-((float)g + (float)c_int_fld) / ((float)c_int_fld - (float)g), 0.0F
};
b_h_fld.a(af);
}
public void a(float af[], float af1[], float af2[])
{
f.b(c_float_array1d_fld);
a_float_array1d_fld[0] = af2[0];
a_float_array1d_fld[1] = -af2[1];
a_float_array1d_fld[2] = af2[2];
d_float_array1d_fld[0] = -af1[0];
d_float_array1d_fld[1] = -af1[1] + a_float_fld;
d_float_array1d_fld[2] = -af1[2];
f.a(d_float_array1d_fld);
b_float_array1d_fld[0] = af[0];
b_float_array1d_fld[1] = af[1];
b_float_array1d_fld[2] = af[2];
f.b(c_float_array1d_fld, a_float_array1d_fld, d_float_array1d_fld);
f.b(a_float_array1d_fld, d_float_array1d_fld, c_float_array1d_fld);
f.a(c_float_array1d_fld);
f.a(a_float_array1d_fld);
a_h_fld.b(c_float_array1d_fld, a_float_array1d_fld, d_float_array1d_fld);
}
public void a(float f1)
{
a_float_fld = f1;
}
public void a(Graphics g1)
{
c_h_fld.a();
c_h_fld.a(a_h_fld);
float af[] = {
-160F * b_float_array1d_fld[0], -160F * b_float_array1d_fld[1], -160F * b_float_array1d_fld[2]
};
a_h_fld.b(af);
c_h_fld.c(af[0], af[1], af[2]);
b_com_mascotcapsule_micro3d_v3_FigureLayout_fld.setAffineTrans(c_h_fld.a());
}
public void b(Graphics g1)
{
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.bind(g1);
a_javax_microedition_lcdui_Graphics_fld = g1;
}
public void a()
{
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.flush();
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.release(a_javax_microedition_lcdui_Graphics_fld);
}
public void b()
{
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.flush();
}
public void a(c c1, h h1)
{
c_h_fld.a();
c_h_fld.a(a_h_fld);
c_h_fld.a(h1);
float af[] = {
-160F * (b_float_array1d_fld[0] - h1.a[3]), -160F * (b_float_array1d_fld[1] - h1.a[7]), -160F * (b_float_array1d_fld[2] - h1.a[11])
};
a_h_fld.b(af);
c_h_fld.c(af[0], af[1], af[2]);
if(c1.a_com_mascotcapsule_micro3d_v3_Figure_fld != null)
{
c_h_fld.d(4F, 4F, 4F);
a_com_mascotcapsule_micro3d_v3_FigureLayout_fld.setAffineTrans(c_h_fld.a());
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderFigure(c1.a_com_mascotcapsule_micro3d_v3_Figure_fld, h, f, a_com_mascotcapsule_micro3d_v3_FigureLayout_fld, c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld);
} else
{
a_com_mascotcapsule_micro3d_v3_FigureLayout_fld.setAffineTrans(c_h_fld.a());
if(c1.a_e_fld != null)
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, a_com_mascotcapsule_micro3d_v3_FigureLayout_fld, c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, c1.a_int_fld, c1.b_int_fld, c1.d, c1.b_int_array1d_fld, c1.a_int_array1d_fld, c1.c);
else
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, a_com_mascotcapsule_micro3d_v3_FigureLayout_fld, c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, c1.a_int_fld, c1.b_int_fld, c1.d, c1.b_int_array1d_fld, c1.a_int_array1d_fld, c1.c);
}
}
public void a(c c1, byte byte0, byte byte1, int l)
{
if(c1 == null)
return;
if(l < 0)
{
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, b_com_mascotcapsule_micro3d_v3_FigureLayout_fld, c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, 0x4003000, c1.b_int_fld, c1.d, c1.b_int_array1d_fld, c1.a_int_array1d_fld, c1.c);
} else
{
a(c1.d, c1.a_int_array1d_fld, byte0, byte1, l);
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, b_com_mascotcapsule_micro3d_v3_FigureLayout_fld, c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, 0x4003000, i, a_int_array1d_fld, c_int_array1d_fld, d_int_array1d_fld, b_int_array1d_fld);
}
}
public void a(g g1)
{
float af[] = {
-160F * (b_float_array1d_fld[0] - g1.a_float_fld), -160F * (b_float_array1d_fld[1] - g1.b), -160F * (b_float_array1d_fld[2] - g1.c_float_fld)
};
a_h_fld.b(af);
c_h_fld.a();
c_h_fld.c(af[0], af[1], af[2]);
a_com_mascotcapsule_micro3d_v3_FigureLayout_fld.setAffineTrans(c_h_fld.a());
if(g1.a_e_fld.a_int_fld == 64)
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(g1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, a_com_mascotcapsule_micro3d_v3_FigureLayout_fld, g1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, 0x4003010, 1, g.h, g.e, g.g, g.c_int_array1d_static_fld);
else
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(g1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, a_com_mascotcapsule_micro3d_v3_FigureLayout_fld, g1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, 0x4003010, 1, g.f, g.e, g.a_int_array1d_static_fld, g.c_int_array1d_static_fld);
}
public void a(g g1, float f1, float f2, float f3)
{
float af[] = {
-160F * (b_float_array1d_fld[0] - f1), -160F * (b_float_array1d_fld[1] - f2), -160F * (b_float_array1d_fld[2] - f3)
};
a_h_fld.b(af);
c_h_fld.a();
c_h_fld.c(af[0], af[1], af[2]);
a_com_mascotcapsule_micro3d_v3_FigureLayout_fld.setAffineTrans(c_h_fld.a());
if(g1.a_e_fld.a_int_fld == 64)
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(g1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, a_com_mascotcapsule_micro3d_v3_FigureLayout_fld, g1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, 0x4003010, 1, g.h, g.e, g.g, g.c_int_array1d_static_fld);
else
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(g1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, a_com_mascotcapsule_micro3d_v3_FigureLayout_fld, g1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, 0x4003010, 1, g.f, g.e, g.a_int_array1d_static_fld, g.c_int_array1d_static_fld);
}
public void a(c c1, float f1, float f2, float f3, float f4, float f5, float f6)
{
c_h_fld.a();
c_h_fld.b(f4, f5, f6);
c_h_fld.c(160F * f1, 160F * f2, 160F * f3);
a_com_mascotcapsule_micro3d_v3_FigureLayout_fld.setAffineTrans(c_h_fld.a());
a_com_mascotcapsule_micro3d_v3_Graphics3D_fld.renderPrimitives(c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Texture_fld, h, f, a_com_mascotcapsule_micro3d_v3_FigureLayout_fld, c1.a_e_fld.a_com_mascotcapsule_micro3d_v3_Effect3D_fld, c1.a_int_fld, c1.b_int_fld, c1.d, c1.b_int_array1d_fld, c1.a_int_array1d_fld, c1.c);
}
public void a(int ai[], int ai1[], byte byte0, byte byte1, int l)
{
boolean flag = false;
boolean flag1 = false;
i = 0;
a_int_fld = 0;
int i3 = ai.length / 12;
for(int j3 = 0; j3 < i3; j3++)
{
int k2 = 1 << j3;
int i1 = j3 * 12;
int j1 = j3 * 8;
if((byte0 & k2) != 0)
{
int l2;
if((byte1 & k2) != 0)
l2 = Math.min(2, l);
else
l2 = 1;
a(0, ai[i1 + 0], ai[i1 + 1], ai[i1 + 2], ai[i1 + 3], ai[i1 + 4], ai[i1 + 5], ai[i1 + 6], ai[i1 + 7], ai[i1 + 8], ai[i1 + 9], ai[i1 + 10], ai[i1 + 11], ai1[j1 + 0], ai1[j1 + 1], ai1[j1 + 2], ai1[j1 + 3], ai1[j1 + 4], ai1[j1 + 5], ai1[j1 + 6], ai1[j1 + 7], l2);
continue;
}
int i2 = i * 12;
int j2 = i * 8;
for(int k1 = 0; k1 < 12; k1++)
a_int_array1d_fld[i2++] = ai[i1++];
for(int l1 = 0; l1 < 8; l1++)
d_int_array1d_fld[j2++] = ai1[j1++];
i++;
}
}
public void a(int l, int i1, int j1, int k1, int l1, int i2, int j2,
int k2, int l2, int i3, int j3, int k3, int l3, int i4,
int j4, int k4, int l4, int i5, int j5, int k5, int l5,
int i6)
{
if(l < i6)
{
int j6 = i1 + l1 >> 1;
int k7 = j1 + i2 >> 1;
int l8 = k1 + j2 >> 1;
int k6 = l1 + k2 >> 1;
int l7 = i2 + l2 >> 1;
int i9 = j2 + i3 >> 1;
int l6 = k2 + j3 >> 1;
int i8 = l2 + k3 >> 1;
int j9 = i3 + l3 >> 1;
int i7 = j3 + i1 >> 1;
int j8 = k3 + j1 >> 1;
int k9 = l3 + k1 >> 1;
int j7 = i1 + l1 + k2 + j3 >> 2;
int k8 = j1 + i2 + l2 + k3 >> 2;
int l9 = k1 + j2 + i3 + l3 >> 2;
int i10 = i4 + k4 >> 1;
int j11 = j4 + l4 >> 1;
int j10 = k4 + i5 >> 1;
int k11 = l4 + j5 >> 1;
int k10 = i5 + k5 >> 1;
int l11 = j5 + l5 >> 1;
int l10 = k5 + i4 >> 1;
int i12 = l5 + j4 >> 1;
int i11 = i4 + k4 + i5 + k5 >> 2;
int j12 = j4 + l4 + j5 + l5 >> 2;
a(l + 1, i1, j1, k1, j6, k7, l8, j7, k8, l9, i7, j8, k9, i4, j4, i10, j11, i11, j12, l10, i12, i6);
a(l + 1, j6, k7, l8, l1, i2, j2, k6, l7, i9, j7, k8, l9, i10, j11, k4, l4, j10, k11, i11, j12, i6);
a(l + 1, j7, k8, l9, k6, l7, i9, k2, l2, i3, l6, i8, j9, i11, j12, j10, k11, i5, j5, k10, l11, i6);
a(l + 1, i7, j8, k9, j7, k8, l9, l6, i8, j9, j3, k3, l3, l10, i12, i11, j12, k10, l11, k5, l5, i6);
} else
{
int k12 = i * 12;
int l12 = i * 8;
a_int_array1d_fld[k12++] = i1;
a_int_array1d_fld[k12++] = j1;
a_int_array1d_fld[k12++] = k1;
a_int_array1d_fld[k12++] = l1;
a_int_array1d_fld[k12++] = i2;
a_int_array1d_fld[k12++] = j2;
a_int_array1d_fld[k12++] = k2;
a_int_array1d_fld[k12++] = l2;
a_int_array1d_fld[k12++] = i3;
a_int_array1d_fld[k12++] = j3;
a_int_array1d_fld[k12++] = k3;
a_int_array1d_fld[k12++] = l3;
d_int_array1d_fld[l12 + 0] = i4;
d_int_array1d_fld[l12 + 1] = j4;
d_int_array1d_fld[l12 + 2] = k4;
d_int_array1d_fld[l12 + 3] = l4;
d_int_array1d_fld[l12 + 4] = i5;
d_int_array1d_fld[l12 + 5] = j5;
d_int_array1d_fld[l12 + 6] = k5;
d_int_array1d_fld[l12 + 7] = l5;
i++;
}
}
private Graphics3D a_com_mascotcapsule_micro3d_v3_Graphics3D_fld;
private int b_int_fld;
private Graphics a_javax_microedition_lcdui_Graphics_fld;
private h b_h_fld;
private FigureLayout a_com_mascotcapsule_micro3d_v3_FigureLayout_fld;
private h c_h_fld;
private FigureLayout b_com_mascotcapsule_micro3d_v3_FigureLayout_fld;
int i;
int a_int_fld;
public h a_h_fld;
private float a_float_fld;
private float b_float_array1d_fld[] = {
0.0F, 0.0F, 0.0F
};
private int g;
private int c_int_fld;
private int d_int_fld;
private int a_int_array1d_fld[];
private int d_int_array1d_fld[];
private int c_int_array1d_fld[];
private int b_int_array1d_fld[];
private int k;
private int e;
private int j;
private int h;
private int f;
public float c_float_array1d_fld[];
public float a_float_array1d_fld[];
public float d_float_array1d_fld[];
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?