Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.rigamortis.faurax.j;
- import BL;
- import Cw;
- import FT;
- import cS;
- import java.awt.image.BufferedImage;
- import java.io.PrintStream;
- import java.util.ArrayList;
- import java.util.Iterator;
- import java.util.List;
- import jx;
- import jz;
- import lM;
- import lU;
- import ld;
- import li;
- import org.lwjgl.opengl.GL11;
- import pZ;
- import qf;
- import tC;
- import tQ;
- import ty;
- import xp;
- public class l
- {
- private String t;
- private int u;
- private int v;
- private boolean w;
- private boolean x;
- private boolean y;
- public int a;
- public int b;
- public int c;
- public int d;
- protected boolean e;
- public static li f = ;
- public lM g = f.p;
- public ArrayList h = new ArrayList();
- public ArrayList i = new ArrayList();
- public ArrayList j = new ArrayList();
- private static final tQ z = new tQ("textures/FauraxTextures/Header.png");
- private static final tQ A = new tQ("textures/FauraxTextures/Bottom.png");
- public me.rigamortis.faurax.h.a k;
- private int B = 0;
- private int C = 0;
- public int l = 96 + this.a + b();
- public int m = 96 + this.b + c();
- public static int[] n;
- public static int o;
- public int p = 260;
- public int q = 14;
- public int r;
- public int s;
- public l(String paramString, int paramInt1, int paramInt2)
- {
- this.t = paramString;
- this.u = paramInt1;
- this.v = paramInt2;
- e.a.add(this);
- e.f.add(this);
- this.k = new me.rigamortis.faurax.h.a("Tahoma", 20.0F, 0.0F);
- q();
- me.rigamortis.faurax.a.f().l();
- }
- public void a(int paramInt1, int paramInt2)
- {
- this.a = (paramInt1 - this.c);
- this.b = (paramInt2 - this.d);
- }
- public void a(me.rigamortis.faurax.p.a parama)
- {
- this.h.add(new a(this, parama, this.u, this.v + 15 * this.h.size() + 13 + 6));
- }
- public j a(k paramk)
- {
- return a(paramk);
- }
- public j a(k paramk, float paramFloat)
- {
- return a(paramk, 0.0F);
- }
- public j a(k paramk, float paramFloat1, float paramFloat2, boolean paramBoolean)
- {
- j localj = new j(this, paramk, this.u, this.v + 15 * this.C + 13 + 6, paramFloat1, paramFloat2, paramBoolean);
- this.i.add(localj);
- this.C += 1;
- return localj;
- }
- public void b(int paramInt1, int paramInt2)
- {
- if (this.w)
- {
- if (this.e) {
- a(paramInt1, paramInt2);
- }
- c(paramInt1, paramInt2);
- if (this.x != true) {
- this.k.a("+", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 2.0F + 0.5F, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -16777216, -1);
- }
- if ((this.x == true) && (this.t != "Map") && (this.t != "Faurax Chat") && (this.t != "Radar")) {
- this.k.a("x", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 4.0F, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- int i1;
- if (((this.t == "Map") || (this.t == "Radar")) && (this.x == true))
- {
- i1 = 9;
- this.k.a("x", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 4.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- if ((this.t == "Faurax Chat") && (this.x == true))
- {
- i1 = this.p - 76;
- this.k.a("x", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 4.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- if ((this.t == "Faurax Chat") && (this.x == true) && (!this.y))
- {
- i1 = this.p - 76 - 14;
- this.k.a("+", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 4.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -16777216, -1);
- }
- if ((this.t == "Faurax Chat") && (this.x == true) && (this.y == true))
- {
- i1 = this.p - 76 - 14;
- this.k.a("x", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 4.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (!this.x) && (!this.y))
- {
- i1 = -13;
- this.k.a("+", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 3.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -16777216, -1);
- }
- if ((this.t == "Faurax Chat") && (!this.x) && (!this.y))
- {
- i1 = -13;
- this.k.a("+", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 3.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -16777216, -1);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (this.x == true) && (this.y == true))
- {
- i1 = -4;
- this.k.a("x", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 4.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (!this.x) && (this.y == true))
- {
- i1 = -13;
- this.k.a("x", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 4.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (this.x == true) && (!this.y))
- {
- i1 = -4;
- this.k.a("+", 85 + b() + this.a - 10 + 2 + 1 + 0.5F + 3.0F + i1, c() + this.b + 2 + 1 + 0.5F - 4.5F, me.rigamortis.faurax.h.b.c, -16777216, -1);
- }
- Iterator localIterator = this.h.iterator();
- Object localObject;
- while (localIterator.hasNext())
- {
- localObject = (a)localIterator.next();
- if (this.x == true)
- {
- ((a)localObject).a(paramInt1, paramInt2);
- if ((paramInt1 >= ((a)localObject).a() + this.a + 9) && (paramInt2 >= ((a)localObject).b() + 1 + this.b) && (paramInt1 <= ((a)localObject).a() + 98 + this.a) && (paramInt2 <= ((a)localObject).b() + 10 + this.b)) {
- ((a)localObject).e = true;
- } else {
- ((a)localObject).e = false;
- }
- }
- }
- localIterator = this.i.iterator();
- while (localIterator.hasNext())
- {
- localObject = (j)localIterator.next();
- if (this.x == true) {
- ((j)localObject).b(paramInt1);
- }
- }
- }
- }
- public void a(int paramInt1, int paramInt2, int paramInt3)
- {
- Iterator localIterator = this.h.iterator();
- Object localObject;
- while (localIterator.hasNext())
- {
- localObject = (a)localIterator.next();
- ((a)localObject).a(paramInt1, paramInt2, paramInt3);
- }
- if (((this.t != "Map") || (this.t != "Radar")) && (paramInt1 >= 85 + this.a + b() - 10 - 2) && (paramInt2 >= 0 + this.b + c() + 2) && (paramInt1 <= b() + this.a + 96 - 4) && (paramInt2 <= 16 + this.b + c())) {
- this.x = (!this.x);
- }
- if ((paramInt1 >= 0 + this.a + b()) && (paramInt2 >= 0 + this.b + c() - 3) && (paramInt1 <= 100 + this.a + b()) && (paramInt2 <= 14 + this.b + c()))
- {
- e.a(this);
- this.e = true;
- this.c = (paramInt1 - this.a);
- this.d = (paramInt2 - this.b);
- }
- if ((this.t == "Faurax Chat") && (this.x == true) && (paramInt1 >= 0 + this.a + b()) && (paramInt2 >= 0 + this.b + c() - 3) && (paramInt1 <= 240 + this.a + b()) && (paramInt2 <= 14 + this.b + c()))
- {
- e.a(this);
- this.e = true;
- this.c = (paramInt1 - this.a);
- this.d = (paramInt2 - this.b);
- }
- localIterator = this.i.iterator();
- while (localIterator.hasNext())
- {
- localObject = (j)localIterator.next();
- ((j)localObject).a(paramInt1, paramInt2, paramInt3);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (this.x == true) && (paramInt1 >= 85 + this.a + b() - 10 + 2 + 9.5F) && (paramInt2 >= 0 + this.b + c() + 3.5F) && (paramInt1 <= b() + this.a + 96 - 5.5F + 9.0F) && (paramInt2 <= 16 + this.b + c() - 2.5F)) {
- this.x = (!this.x);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (!this.x) && (paramInt1 >= 85 + this.a + b() - 10 + 2 + 0.5F) && (paramInt2 >= 0 + this.b + c() + 3.5F) && (paramInt1 <= b() + this.a + 96 - 5.5F) && (paramInt2 <= 16 + this.b + c() - 2.5F)) {
- this.x = (!this.x);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (!this.x) && (paramInt1 >= 85 + this.a + b() - 10 - 2 - 5) && (paramInt2 >= 0 + this.b + c() + 2) && (paramInt1 <= b() + this.a + 96 - 5) && (paramInt2 <= 16 + this.b + c())) {
- this.y = (!this.y);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (this.x == true) && (paramInt1 >= 85 + this.a + b() - 10 + 3 - 0.5D - 13.0D) && (paramInt2 >= 0 + this.b + c() + 2) && (paramInt1 <= b() + this.a + 96 - 4 - 1 - 0.5F - 13.0F) && (paramInt2 <= 16 + this.b + c())) {
- this.y = (!this.y);
- }
- if (((this.t == "Map") || (this.t == "Radar")) && (this.y == true) && (paramInt1 >= 85 + this.a + b() - 10 - 2 + 4) && (paramInt2 >= 0 + this.b + c() + 2) && (paramInt1 <= b() + this.a + 96 - 4 + 4) && (paramInt2 <= 16 + this.b + c())) {
- this.x = (!this.x);
- }
- if ((this.t == "Faurax Chat") && (this.x == true) && (paramInt1 >= 85 + this.a + b() - 10 + 2 + 9.5F) && (paramInt2 >= 0 + this.b + c() + 3.5F) && (paramInt1 <= b() + this.a + 96 - 5.5F + 9.0F) && (paramInt2 <= 16 + this.b + c() - 2.5F)) {
- this.x = (!this.x);
- }
- if ((this.t == "Faurax Chat") && (!this.x) && (paramInt1 >= 85 + this.a + b() - 10 + 2 + 0.5F) && (paramInt2 >= 0 + this.b + c() + 3.5F) && (paramInt1 <= b() + this.a + 96 - 5.5F) && (paramInt2 <= 16 + this.b + c() - 2.5F)) {
- this.x = (!this.x);
- }
- if ((this.t == "Faurax Chat") && (!this.x) && (paramInt1 >= 85 + this.a + b() - 10 - 2 - 5) && (paramInt2 >= 0 + this.b + c() + 2) && (paramInt1 <= b() + this.a + 96 - 5) && (paramInt2 <= 16 + this.b + c())) {
- this.y = (!this.y);
- }
- if ((this.t == "Faurax Chat") && (this.x == true) && (paramInt1 >= 85 + this.a + b() - 10 + 3 - 0.5D - 13.0D) && (paramInt2 >= 0 + this.b + c() + 2) && (paramInt1 <= b() + this.a + 96 - 4 - 1 - 0.5F - 13.0F) && (paramInt2 <= 16 + this.b + c())) {
- this.y = (!this.y);
- }
- if ((this.t == "Faurax Chat") && (this.y == true) && (paramInt1 >= 85 + this.a + b() - 10 - 2 + 4) && (paramInt2 >= 0 + this.b + c() + 2) && (paramInt1 <= b() + this.a + 96 - 4 + 4) && (paramInt2 <= 16 + this.b + c())) {
- this.x = (!this.x);
- }
- }
- public void b(int paramInt1, int paramInt2, int paramInt3)
- {
- Iterator localIterator = this.i.iterator();
- while (localIterator.hasNext())
- {
- j localj = (j)localIterator.next();
- localj.b(paramInt1, paramInt2, paramInt3);
- }
- if (paramInt3 == 0) {
- this.e = false;
- }
- }
- public final String a()
- {
- return this.t;
- }
- public final int b()
- {
- return this.u;
- }
- public final int c()
- {
- return this.v;
- }
- public boolean d()
- {
- return this.x;
- }
- public boolean e()
- {
- return this.w;
- }
- public boolean f()
- {
- return this.y;
- }
- public void a(boolean paramBoolean)
- {
- this.w = paramBoolean;
- }
- public void b(boolean paramBoolean)
- {
- this.x = paramBoolean;
- }
- public void c(boolean paramBoolean)
- {
- this.y = paramBoolean;
- }
- public void c(int paramInt1, int paramInt2)
- {
- if (this.x != true)
- {
- f.M().a(z);
- f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 1.0F, 1.0F, 250.0F, 60.0F);
- f.M().a(A);
- f.a(A, 1 + b() + this.a, 14 + this.b + c(), 95.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
- }
- else if ((this.t != "Values") && (this.t != "Map") && (this.t != "Radar") && (this.t != "Faurax Chat") && (this.t != "Gui"))
- {
- g();
- h();
- }
- else
- {
- int i1;
- int i2;
- if ((this.t != "Map") && (this.t != "Faurax Chat") && (this.t != "Radar"))
- {
- i1 = 200;
- i2 = i1 << 24;
- f.M().a(A);
- f.a(A, 1 + b() + this.a, 10 + this.b + c() + (15 * this.i.size() + 10), 95.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
- f.a(1.5F + this.a + b(), 13 + this.b + c(), 97 + this.a + b() - 0.5F, 10.0F + (15 * this.i.size() + 10 + 0.5F) + this.b + c(), 3421236 + i2, 3421236 + i2);
- f.M().a(z);
- f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 1.0F, 1.0F, 250.0F, 60.0F);
- }
- else if (this.t == "Map")
- {
- i1 = 200;
- i2 = i1 << 24;
- f.a(1.5F + this.a + b(), 13 + this.b + c(), 97 + this.a + b() + 0.5F + 7.0F, this.b + c() + 116 + 0.5F, 3421236 + i2, 3421236 + i2);
- l();
- m();
- s();
- r();
- u();
- }
- else if (this.t == "Faurax Chat")
- {
- i1 = 200;
- i2 = i1 << 24;
- f.a(1.5F + this.a + b(), this.b + c() + 16, this.p + this.a + b() + 20, this.b + c() + 116 + 70 - 15, 3421236 + i2, 3421236 + i2);
- p();
- n();
- }
- else
- {
- if (this.t == "Radar")
- {
- i1 = 200;
- i2 = i1 << 24;
- f.a(1.5F + this.a + b(), 13 + this.b + c(), 97 + this.a + b() + 0.5F + 7.0F, this.b + c() + 116 + 0.5F, 3421236 + i2, 3421236 + i2);
- l();
- m();
- GL11.glPushMatrix();
- int i3 = 54;
- int i4 = 66;
- GL11.glTranslatef(i3 + this.a + b(), i4 + this.b + c(), 0.0F);
- GL11.glRotatef(-f.k.G, 0.0F, 0.0F, 1.0F);
- t();
- GL11.glPopMatrix();
- }
- if (!this.x)
- {
- f.M().a(z);
- f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 1.0F, 1.0F, 250.0F, 60.0F);
- f.M().a(A);
- f.a(A, 1 + b() + this.a, 14 + this.b + c(), 95.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
- }
- }
- }
- this.k.a(this.t, this.a + b() + 4, this.b + c() - 3 + 2, me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- public void g()
- {
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- f.M().a(A);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- int i1 = 200;
- int i2 = i1 << 24;
- f.a(A, 1 + b() + this.a, 14 + this.b + c() + (15 * this.h.size() + 5 + 0.5F + 0.5F), 95.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
- f.a(1.5F + this.a + b(), 13 + this.b + c(), 97 + this.a + b() - 0.5F, 10.0F + (15 * this.h.size() + 10 + 0.5F) + this.b + c(), 3421236 + i2, 3421236 + i2);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
- public void h()
- {
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- f.M().a(z);
- f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 0.0F, 0.0F, 250.0F, 60.0F);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
- public void i()
- {
- Iterator localIterator = e.a.iterator();
- while (localIterator.hasNext())
- {
- l locall = (l)localIterator.next();
- this.k.a(locall.a(), 4 + this.a + b(), 22.5F + this.b + c(), me.rigamortis.faurax.h.b.c, -6710887, -16777216);
- }
- }
- public void j()
- {
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- f.M().a(A);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- f.a(A, 1 + b() + this.a, 14 + this.b + c() + (15 * e.a.size() + 5 + 0.5F + 0.5F), 95.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
- f.a(1.5F + this.a + b(), 13 + this.b + c(), 97 + this.a + b() - 0.5F, 10.0F + (15 * e.a.size() + 10 + 0.5F) + this.b + c(), -13355980, -13355980);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
- public void k()
- {
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- f.M().a(z);
- f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 0.0F, 0.0F, 250.0F, 60.0F);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
- public void l()
- {
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- f.M().a(z);
- f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 103.0F, 20.0F, 1.0F, 1.0F, 250.0F, 60.0F);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
- public void m()
- {
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- f.M().a(A);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- f.a(A, 1 + b() + this.a, this.b + c() + 116 + 0.5F, 103.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
- public void n()
- {
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- f.M().a(A);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- o();
- f.M().a(A);
- f.a(A, 1 + b() + this.a + 19, 116 + this.b + c() + 70 - 15, this.p, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
- f.a(A, 1 + b() + this.a, 116 + this.b + c() + 70 - 15, 95.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
- public void o()
- {
- try
- {
- int i1 = 10;
- int i2 = lU.g.size();
- for (int i3 = 0; (i3 + 0 < lU.g.size()) && (i3 < i1); i3++)
- {
- ld localld = (ld)lU.g.get(i3 + lU.h);
- if (localld != null)
- {
- String str = localld.a().d();
- int i4 = 0;
- f.y.q = -10.0F;
- f.y.E = 0.9084507F;
- int i5 = -i3 * 15 + 153;
- f.a(b() + this.a + 4, c() + this.b + i5 + 1.5F, b() + this.a + this.p + 10 + 8, c() + this.b + i5 + 15.5F, 2005436552, 1717986918);
- f.a(b() + this.a + 4, c() + this.b + i5 + 1.5F, b() + this.a + this.p + 10 + 8, c() + this.b + i5 + 15.5F, 0.5D, 0, 1717986918);
- this.k.a(str, i4 + this.a + b() + 4, i5 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- }
- }
- catch (Exception localException)
- {
- localException.printStackTrace();
- }
- }
- public void p()
- {
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- f.M().a(z);
- f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), this.p, 20.0F, 0.0F, 0.0F, 220.0F, 60.0F);
- f.a(z, 260 + b() + this.a - 97, 1 + this.b + c(), 117.0F, 20.0F, 0.0F, 0.0F, 250.0F, 60.0F);
- GL11.glDisable(3042);
- GL11.glPopMatrix();
- }
- public int a(BufferedImage paramBufferedImage)
- {
- return tC.a(tC.a(), paramBufferedImage);
- }
- public void a(int[] paramArrayOfInt, int paramInt1, int paramInt2, int paramInt3)
- {
- tC.b(paramInt3);
- tC.a(0, paramArrayOfInt, paramInt1, paramInt2, 0, 0, true, false, false);
- }
- public void q()
- {
- BufferedImage localBufferedImage = new BufferedImage(this.l, this.m, 2);
- o = a(localBufferedImage);
- n = new int[this.l * this.m];
- }
- public static int d(int paramInt1, int paramInt2)
- {
- pZ localpZ = li.y().i;
- int i1 = localpZ.f(paramInt1, paramInt2) - 1;
- cS localcS = li.y().i.a(paramInt1, i1, paramInt2);
- int i2 = localcS.m().q().L;
- int i3 = -1728053248;
- return i2;
- }
- public void r()
- {
- try
- {
- GL11.glPushMatrix();
- a(n, this.l, this.m, o);
- f.b(1.5F + this.a + b() + 2.0F, 15.5F + this.b + c() + 2.0F, this.l + 3, this.m + 2, o);
- int i1 = 54;
- int i2 = 66;
- GL11.glTranslatef(i1 + this.a + b(), i2 + this.b + c(), 0.0F);
- GL11.glRotatef(li.y().k.G, 0.0F, 0.0F, 1.0F);
- f.b(0.0D, 0.0D, 3.0F, -180.0F, 1, -2012453965);
- f.a(0.0D, 0.0D, 3.0F, -180.0F, 1, -15965261);
- f.a(0.0D, 0.0D, 3.0F, -180.0F, 1, -15965261);
- GL11.glRotatef(-li.y().k.G, 0.0F, 0.0F, 1.0F);
- GL11.glTranslatef(-(i1 + this.a + b()), -(i2 + this.b + c()), 0.0F);
- GL11.glPopMatrix();
- }
- catch (Exception localException)
- {
- System.out.println("Cannont render map!");
- }
- }
- public void s()
- {
- for (int i1 = 0; i1 < this.l; i1++) {
- for (int i2 = 0; i2 < this.m; i2++)
- {
- int i3 = (int)li.y().k.A - this.l / 2;
- int i4 = (int)li.y().k.C - this.l / 2;
- int i5 = i3 + i1;
- int i6 = i4 + i2;
- int i7 = 0;
- pZ localpZ = li.y().i;
- int i8 = localpZ.f(i5, i6) - 1;
- cS localcS = li.y().i.a(i5, i8, i6);
- i7 = d(i5, i6);
- i7 |= 0xFF000000;
- n[(i1 + i2 * this.m)] = (0xFF000000 | i7);
- }
- }
- }
- public void t()
- {
- List localList = f.i.b;
- for (int i1 = 0; i1 < localList.size(); i1++)
- {
- Cw localCw = (Cw)localList.get(i1);
- int i2 = (int)Math.round(f.k.A);
- int i3 = (int)Math.round(f.k.C);
- int i4 = (int)Math.round(localCw.A);
- int i5 = (int)Math.round(localCw.C);
- int i6 = i2 - i4;
- int i7 = i3 - i5;
- GL11.glScalef(0.5F, 0.5F, 0.5F);
- if (((localCw instanceof FT)) && (f.k.d(localCw) < 256.0F) && (localCw != f.k) && (!localCw.S))
- {
- int i8;
- if (me.rigamortis.faurax.a.g().c(localCw.H_())) {
- i8 = -1726193782;
- } else {
- i8 = -1711341568;
- }
- f.b(i6, i7, 2.0F, i8);
- }
- GL11.glScalef(2.0F, 2.0F, 2.0F);
- }
- }
- private void u()
- {
- int i1 = BL.c(f.k.G * 4.0F / 360.0F + 0.5D) & 0x3;
- if (BQ.c[i1].equals("NORTH")) {
- this.k.a("N", 5 + this.a + b(), 15 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- if (BQ.c[i1].equals("EAST")) {
- this.k.a("E", 5 + this.a + b(), 15 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- if (BQ.c[i1].equals("SOUTH")) {
- this.k.a("S", 5 + this.a + b(), 15 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- if (BQ.c[i1].equals("WEST")) {
- this.k.a("W", 5 + this.a + b(), 15 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement