Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.58 KB | None | 0 0
  1. package me.rigamortis.faurax.j;
  2.  
  3. import BL;
  4. import Cw;
  5. import FT;
  6. import cS;
  7. import java.awt.image.BufferedImage;
  8. import java.io.PrintStream;
  9. import java.util.ArrayList;
  10. import java.util.Iterator;
  11. import java.util.List;
  12. import jx;
  13. import jz;
  14. import lM;
  15. import lU;
  16. import ld;
  17. import li;
  18. import org.lwjgl.opengl.GL11;
  19. import pZ;
  20. import qf;
  21. import tC;
  22. import tQ;
  23. import ty;
  24. import xp;
  25.  
  26. public class l
  27. {
  28. private String t;
  29. private int u;
  30. private int v;
  31. private boolean w;
  32. private boolean x;
  33. private boolean y;
  34. public int a;
  35. public int b;
  36. public int c;
  37. public int d;
  38. protected boolean e;
  39. public static li f = ;
  40. public lM g = f.p;
  41. public ArrayList h = new ArrayList();
  42. public ArrayList i = new ArrayList();
  43. public ArrayList j = new ArrayList();
  44. private static final tQ z = new tQ("textures/FauraxTextures/Header.png");
  45. private static final tQ A = new tQ("textures/FauraxTextures/Bottom.png");
  46. public me.rigamortis.faurax.h.a k;
  47. private int B = 0;
  48. private int C = 0;
  49. public int l = 96 + this.a + b();
  50. public int m = 96 + this.b + c();
  51. public static int[] n;
  52. public static int o;
  53. public int p = 260;
  54. public int q = 14;
  55. public int r;
  56. public int s;
  57.  
  58. public l(String paramString, int paramInt1, int paramInt2)
  59. {
  60. this.t = paramString;
  61. this.u = paramInt1;
  62. this.v = paramInt2;
  63. e.a.add(this);
  64. e.f.add(this);
  65. this.k = new me.rigamortis.faurax.h.a("Tahoma", 20.0F, 0.0F);
  66. q();
  67. me.rigamortis.faurax.a.f().l();
  68. }
  69.  
  70. public void a(int paramInt1, int paramInt2)
  71. {
  72. this.a = (paramInt1 - this.c);
  73. this.b = (paramInt2 - this.d);
  74. }
  75.  
  76. public void a(me.rigamortis.faurax.p.a parama)
  77. {
  78. this.h.add(new a(this, parama, this.u, this.v + 15 * this.h.size() + 13 + 6));
  79. }
  80.  
  81. public j a(k paramk)
  82. {
  83. return a(paramk);
  84. }
  85.  
  86. public j a(k paramk, float paramFloat)
  87. {
  88. return a(paramk, 0.0F);
  89. }
  90.  
  91. public j a(k paramk, float paramFloat1, float paramFloat2, boolean paramBoolean)
  92. {
  93. j localj = new j(this, paramk, this.u, this.v + 15 * this.C + 13 + 6, paramFloat1, paramFloat2, paramBoolean);
  94. this.i.add(localj);
  95. this.C += 1;
  96. return localj;
  97. }
  98.  
  99. public void b(int paramInt1, int paramInt2)
  100. {
  101. if (this.w)
  102. {
  103. if (this.e) {
  104. a(paramInt1, paramInt2);
  105. }
  106. c(paramInt1, paramInt2);
  107. if (this.x != true) {
  108. 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);
  109. }
  110. if ((this.x == true) && (this.t != "Map") && (this.t != "Faurax Chat") && (this.t != "Radar")) {
  111. 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);
  112. }
  113. int i1;
  114. if (((this.t == "Map") || (this.t == "Radar")) && (this.x == true))
  115. {
  116. i1 = 9;
  117. 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);
  118. }
  119. if ((this.t == "Faurax Chat") && (this.x == true))
  120. {
  121. i1 = this.p - 76;
  122. 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);
  123. }
  124. if ((this.t == "Faurax Chat") && (this.x == true) && (!this.y))
  125. {
  126. i1 = this.p - 76 - 14;
  127. 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);
  128. }
  129. if ((this.t == "Faurax Chat") && (this.x == true) && (this.y == true))
  130. {
  131. i1 = this.p - 76 - 14;
  132. 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);
  133. }
  134. if (((this.t == "Map") || (this.t == "Radar")) && (!this.x) && (!this.y))
  135. {
  136. i1 = -13;
  137. 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);
  138. }
  139. if ((this.t == "Faurax Chat") && (!this.x) && (!this.y))
  140. {
  141. i1 = -13;
  142. 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);
  143. }
  144. if (((this.t == "Map") || (this.t == "Radar")) && (this.x == true) && (this.y == true))
  145. {
  146. i1 = -4;
  147. 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);
  148. }
  149. if (((this.t == "Map") || (this.t == "Radar")) && (!this.x) && (this.y == true))
  150. {
  151. i1 = -13;
  152. 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);
  153. }
  154. if (((this.t == "Map") || (this.t == "Radar")) && (this.x == true) && (!this.y))
  155. {
  156. i1 = -4;
  157. 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);
  158. }
  159. Iterator localIterator = this.h.iterator();
  160. Object localObject;
  161. while (localIterator.hasNext())
  162. {
  163. localObject = (a)localIterator.next();
  164. if (this.x == true)
  165. {
  166. ((a)localObject).a(paramInt1, paramInt2);
  167. 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)) {
  168. ((a)localObject).e = true;
  169. } else {
  170. ((a)localObject).e = false;
  171. }
  172. }
  173. }
  174. localIterator = this.i.iterator();
  175. while (localIterator.hasNext())
  176. {
  177. localObject = (j)localIterator.next();
  178. if (this.x == true) {
  179. ((j)localObject).b(paramInt1);
  180. }
  181. }
  182. }
  183. }
  184.  
  185. public void a(int paramInt1, int paramInt2, int paramInt3)
  186. {
  187. Iterator localIterator = this.h.iterator();
  188. Object localObject;
  189. while (localIterator.hasNext())
  190. {
  191. localObject = (a)localIterator.next();
  192. ((a)localObject).a(paramInt1, paramInt2, paramInt3);
  193. }
  194. 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())) {
  195. this.x = (!this.x);
  196. }
  197. if ((paramInt1 >= 0 + this.a + b()) && (paramInt2 >= 0 + this.b + c() - 3) && (paramInt1 <= 100 + this.a + b()) && (paramInt2 <= 14 + this.b + c()))
  198. {
  199. e.a(this);
  200. this.e = true;
  201. this.c = (paramInt1 - this.a);
  202. this.d = (paramInt2 - this.b);
  203. }
  204. 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()))
  205. {
  206. e.a(this);
  207. this.e = true;
  208. this.c = (paramInt1 - this.a);
  209. this.d = (paramInt2 - this.b);
  210. }
  211. localIterator = this.i.iterator();
  212. while (localIterator.hasNext())
  213. {
  214. localObject = (j)localIterator.next();
  215. ((j)localObject).a(paramInt1, paramInt2, paramInt3);
  216. }
  217. 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)) {
  218. this.x = (!this.x);
  219. }
  220. 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)) {
  221. this.x = (!this.x);
  222. }
  223. 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())) {
  224. this.y = (!this.y);
  225. }
  226. 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())) {
  227. this.y = (!this.y);
  228. }
  229. 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())) {
  230. this.x = (!this.x);
  231. }
  232. 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)) {
  233. this.x = (!this.x);
  234. }
  235. 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)) {
  236. this.x = (!this.x);
  237. }
  238. 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())) {
  239. this.y = (!this.y);
  240. }
  241. 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())) {
  242. this.y = (!this.y);
  243. }
  244. 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())) {
  245. this.x = (!this.x);
  246. }
  247. }
  248.  
  249. public void b(int paramInt1, int paramInt2, int paramInt3)
  250. {
  251. Iterator localIterator = this.i.iterator();
  252. while (localIterator.hasNext())
  253. {
  254. j localj = (j)localIterator.next();
  255. localj.b(paramInt1, paramInt2, paramInt3);
  256. }
  257. if (paramInt3 == 0) {
  258. this.e = false;
  259. }
  260. }
  261.  
  262. public final String a()
  263. {
  264. return this.t;
  265. }
  266.  
  267. public final int b()
  268. {
  269. return this.u;
  270. }
  271.  
  272. public final int c()
  273. {
  274. return this.v;
  275. }
  276.  
  277. public boolean d()
  278. {
  279. return this.x;
  280. }
  281.  
  282. public boolean e()
  283. {
  284. return this.w;
  285. }
  286.  
  287. public boolean f()
  288. {
  289. return this.y;
  290. }
  291.  
  292. public void a(boolean paramBoolean)
  293. {
  294. this.w = paramBoolean;
  295. }
  296.  
  297. public void b(boolean paramBoolean)
  298. {
  299. this.x = paramBoolean;
  300. }
  301.  
  302. public void c(boolean paramBoolean)
  303. {
  304. this.y = paramBoolean;
  305. }
  306.  
  307. public void c(int paramInt1, int paramInt2)
  308. {
  309. if (this.x != true)
  310. {
  311. f.M().a(z);
  312. f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 1.0F, 1.0F, 250.0F, 60.0F);
  313. f.M().a(A);
  314. f.a(A, 1 + b() + this.a, 14 + this.b + c(), 95.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
  315. }
  316. else if ((this.t != "Values") && (this.t != "Map") && (this.t != "Radar") && (this.t != "Faurax Chat") && (this.t != "Gui"))
  317. {
  318. g();
  319. h();
  320. }
  321. else
  322. {
  323. int i1;
  324. int i2;
  325. if ((this.t != "Map") && (this.t != "Faurax Chat") && (this.t != "Radar"))
  326. {
  327. i1 = 200;
  328. i2 = i1 << 24;
  329. f.M().a(A);
  330. 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);
  331. 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);
  332. f.M().a(z);
  333. f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 1.0F, 1.0F, 250.0F, 60.0F);
  334. }
  335. else if (this.t == "Map")
  336. {
  337. i1 = 200;
  338. i2 = i1 << 24;
  339. 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);
  340. l();
  341. m();
  342. s();
  343. r();
  344. u();
  345. }
  346. else if (this.t == "Faurax Chat")
  347. {
  348. i1 = 200;
  349. i2 = i1 << 24;
  350. 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);
  351. p();
  352. n();
  353. }
  354. else
  355. {
  356. if (this.t == "Radar")
  357. {
  358. i1 = 200;
  359. i2 = i1 << 24;
  360. 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);
  361. l();
  362. m();
  363. GL11.glPushMatrix();
  364. int i3 = 54;
  365. int i4 = 66;
  366. GL11.glTranslatef(i3 + this.a + b(), i4 + this.b + c(), 0.0F);
  367. GL11.glRotatef(-f.k.G, 0.0F, 0.0F, 1.0F);
  368. t();
  369. GL11.glPopMatrix();
  370. }
  371. if (!this.x)
  372. {
  373. f.M().a(z);
  374. f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 1.0F, 1.0F, 250.0F, 60.0F);
  375. f.M().a(A);
  376. f.a(A, 1 + b() + this.a, 14 + this.b + c(), 95.5F, 14.0F, 1.0F, 1.0F, 250.0F, 25.0F);
  377. }
  378. }
  379. }
  380. this.k.a(this.t, this.a + b() + 4, this.b + c() - 3 + 2, me.rigamortis.faurax.h.b.c, -1, -16777216);
  381. }
  382.  
  383. public void g()
  384. {
  385. GL11.glPushMatrix();
  386. GL11.glEnable(3042);
  387. f.M().a(A);
  388. GL11.glTexParameteri(3553, 10241, 9729);
  389. GL11.glTexParameteri(3553, 10240, 9729);
  390. int i1 = 200;
  391. int i2 = i1 << 24;
  392. 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);
  393. 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);
  394. GL11.glDisable(3042);
  395. GL11.glPopMatrix();
  396. }
  397.  
  398. public void h()
  399. {
  400. GL11.glPushMatrix();
  401. GL11.glEnable(3042);
  402. GL11.glTexParameteri(3553, 10241, 9729);
  403. GL11.glTexParameteri(3553, 10240, 9729);
  404. f.M().a(z);
  405. f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 0.0F, 0.0F, 250.0F, 60.0F);
  406. GL11.glDisable(3042);
  407. GL11.glPopMatrix();
  408. }
  409.  
  410. public void i()
  411. {
  412. Iterator localIterator = e.a.iterator();
  413. while (localIterator.hasNext())
  414. {
  415. l locall = (l)localIterator.next();
  416. this.k.a(locall.a(), 4 + this.a + b(), 22.5F + this.b + c(), me.rigamortis.faurax.h.b.c, -6710887, -16777216);
  417. }
  418. }
  419.  
  420. public void j()
  421. {
  422. GL11.glPushMatrix();
  423. GL11.glEnable(3042);
  424. f.M().a(A);
  425. GL11.glTexParameteri(3553, 10241, 9729);
  426. GL11.glTexParameteri(3553, 10240, 9729);
  427. 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);
  428. 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);
  429. GL11.glDisable(3042);
  430. GL11.glPopMatrix();
  431. }
  432.  
  433. public void k()
  434. {
  435. GL11.glPushMatrix();
  436. GL11.glEnable(3042);
  437. GL11.glTexParameteri(3553, 10241, 9729);
  438. GL11.glTexParameteri(3553, 10240, 9729);
  439. f.M().a(z);
  440. f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 95.0F, 20.0F, 0.0F, 0.0F, 250.0F, 60.0F);
  441. GL11.glDisable(3042);
  442. GL11.glPopMatrix();
  443. }
  444.  
  445. public void l()
  446. {
  447. GL11.glPushMatrix();
  448. GL11.glEnable(3042);
  449. GL11.glTexParameteri(3553, 10241, 9729);
  450. GL11.glTexParameteri(3553, 10240, 9729);
  451. f.M().a(z);
  452. f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), 103.0F, 20.0F, 1.0F, 1.0F, 250.0F, 60.0F);
  453. GL11.glDisable(3042);
  454. GL11.glPopMatrix();
  455. }
  456.  
  457. public void m()
  458. {
  459. GL11.glPushMatrix();
  460. GL11.glEnable(3042);
  461. f.M().a(A);
  462. GL11.glTexParameteri(3553, 10241, 9729);
  463. GL11.glTexParameteri(3553, 10240, 9729);
  464. 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);
  465. GL11.glDisable(3042);
  466. GL11.glPopMatrix();
  467. }
  468.  
  469. public void n()
  470. {
  471. GL11.glPushMatrix();
  472. GL11.glEnable(3042);
  473. f.M().a(A);
  474. GL11.glTexParameteri(3553, 10241, 9729);
  475. GL11.glTexParameteri(3553, 10240, 9729);
  476. o();
  477. f.M().a(A);
  478. 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);
  479. 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);
  480. GL11.glDisable(3042);
  481. GL11.glPopMatrix();
  482. }
  483.  
  484. public void o()
  485. {
  486. try
  487. {
  488. int i1 = 10;
  489. int i2 = lU.g.size();
  490. for (int i3 = 0; (i3 + 0 < lU.g.size()) && (i3 < i1); i3++)
  491. {
  492. ld localld = (ld)lU.g.get(i3 + lU.h);
  493. if (localld != null)
  494. {
  495. String str = localld.a().d();
  496. int i4 = 0;
  497. f.y.q = -10.0F;
  498. f.y.E = 0.9084507F;
  499. int i5 = -i3 * 15 + 153;
  500. 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);
  501. 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);
  502. this.k.a(str, i4 + this.a + b() + 4, i5 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
  503. }
  504. }
  505. }
  506. catch (Exception localException)
  507. {
  508. localException.printStackTrace();
  509. }
  510. }
  511.  
  512. public void p()
  513. {
  514. GL11.glPushMatrix();
  515. GL11.glEnable(3042);
  516. GL11.glTexParameteri(3553, 10241, 9729);
  517. GL11.glTexParameteri(3553, 10240, 9729);
  518. f.M().a(z);
  519. f.a(z, 1.5F + b() + this.a, 1 + this.b + c(), this.p, 20.0F, 0.0F, 0.0F, 220.0F, 60.0F);
  520. f.a(z, 260 + b() + this.a - 97, 1 + this.b + c(), 117.0F, 20.0F, 0.0F, 0.0F, 250.0F, 60.0F);
  521. GL11.glDisable(3042);
  522. GL11.glPopMatrix();
  523. }
  524.  
  525. public int a(BufferedImage paramBufferedImage)
  526. {
  527. return tC.a(tC.a(), paramBufferedImage);
  528. }
  529.  
  530. public void a(int[] paramArrayOfInt, int paramInt1, int paramInt2, int paramInt3)
  531. {
  532. tC.b(paramInt3);
  533. tC.a(0, paramArrayOfInt, paramInt1, paramInt2, 0, 0, true, false, false);
  534. }
  535.  
  536. public void q()
  537. {
  538. BufferedImage localBufferedImage = new BufferedImage(this.l, this.m, 2);
  539. o = a(localBufferedImage);
  540. n = new int[this.l * this.m];
  541. }
  542.  
  543. public static int d(int paramInt1, int paramInt2)
  544. {
  545. pZ localpZ = li.y().i;
  546. int i1 = localpZ.f(paramInt1, paramInt2) - 1;
  547. cS localcS = li.y().i.a(paramInt1, i1, paramInt2);
  548. int i2 = localcS.m().q().L;
  549. int i3 = -1728053248;
  550. return i2;
  551. }
  552.  
  553. public void r()
  554. {
  555. try
  556. {
  557. GL11.glPushMatrix();
  558. a(n, this.l, this.m, o);
  559. f.b(1.5F + this.a + b() + 2.0F, 15.5F + this.b + c() + 2.0F, this.l + 3, this.m + 2, o);
  560. int i1 = 54;
  561. int i2 = 66;
  562. GL11.glTranslatef(i1 + this.a + b(), i2 + this.b + c(), 0.0F);
  563. GL11.glRotatef(li.y().k.G, 0.0F, 0.0F, 1.0F);
  564. f.b(0.0D, 0.0D, 3.0F, -180.0F, 1, -2012453965);
  565. f.a(0.0D, 0.0D, 3.0F, -180.0F, 1, -15965261);
  566. f.a(0.0D, 0.0D, 3.0F, -180.0F, 1, -15965261);
  567. GL11.glRotatef(-li.y().k.G, 0.0F, 0.0F, 1.0F);
  568. GL11.glTranslatef(-(i1 + this.a + b()), -(i2 + this.b + c()), 0.0F);
  569. GL11.glPopMatrix();
  570. }
  571. catch (Exception localException)
  572. {
  573. System.out.println("Cannont render map!");
  574. }
  575. }
  576.  
  577. public void s()
  578. {
  579. for (int i1 = 0; i1 < this.l; i1++) {
  580. for (int i2 = 0; i2 < this.m; i2++)
  581. {
  582. int i3 = (int)li.y().k.A - this.l / 2;
  583. int i4 = (int)li.y().k.C - this.l / 2;
  584. int i5 = i3 + i1;
  585. int i6 = i4 + i2;
  586. int i7 = 0;
  587. pZ localpZ = li.y().i;
  588. int i8 = localpZ.f(i5, i6) - 1;
  589. cS localcS = li.y().i.a(i5, i8, i6);
  590. i7 = d(i5, i6);
  591. i7 |= 0xFF000000;
  592. n[(i1 + i2 * this.m)] = (0xFF000000 | i7);
  593. }
  594. }
  595. }
  596.  
  597. public void t()
  598. {
  599. List localList = f.i.b;
  600. for (int i1 = 0; i1 < localList.size(); i1++)
  601. {
  602. Cw localCw = (Cw)localList.get(i1);
  603. int i2 = (int)Math.round(f.k.A);
  604. int i3 = (int)Math.round(f.k.C);
  605. int i4 = (int)Math.round(localCw.A);
  606. int i5 = (int)Math.round(localCw.C);
  607. int i6 = i2 - i4;
  608. int i7 = i3 - i5;
  609. GL11.glScalef(0.5F, 0.5F, 0.5F);
  610. if (((localCw instanceof FT)) && (f.k.d(localCw) < 256.0F) && (localCw != f.k) && (!localCw.S))
  611. {
  612. int i8;
  613. if (me.rigamortis.faurax.a.g().c(localCw.H_())) {
  614. i8 = -1726193782;
  615. } else {
  616. i8 = -1711341568;
  617. }
  618. f.b(i6, i7, 2.0F, i8);
  619. }
  620. GL11.glScalef(2.0F, 2.0F, 2.0F);
  621. }
  622. }
  623.  
  624. private void u()
  625. {
  626. int i1 = BL.c(f.k.G * 4.0F / 360.0F + 0.5D) & 0x3;
  627. if (BQ.c[i1].equals("NORTH")) {
  628. this.k.a("N", 5 + this.a + b(), 15 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
  629. }
  630. if (BQ.c[i1].equals("EAST")) {
  631. this.k.a("E", 5 + this.a + b(), 15 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
  632. }
  633. if (BQ.c[i1].equals("SOUTH")) {
  634. this.k.a("S", 5 + this.a + b(), 15 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
  635. }
  636. if (BQ.c[i1].equals("WEST")) {
  637. this.k.a("W", 5 + this.a + b(), 15 + this.b + c(), me.rigamortis.faurax.h.b.c, -1, -16777216);
  638. }
  639. }
  640. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement