mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 16:49:03 +00:00
Make project setup easier with Maven (#411)
* Remove a bunch of .ideas and class files to see if it makes the setup easier * remove some .idea's and imkls * Remove a ton of .class files * [TASK] Switched to maven instead of gradle * [TASK] Added target to gitignore * Remove ignored files * [TASK] Fixed file_server source * [TASK] Fixed client source * [BUGFIX] Main Class * [BUGFIX] Fixed SLF4J * [TASK] Server Libs cleanup * Update setup guide/debug * Maven cli compile instructions * [TASK] Jar building * Update runServer and runFileServer.sh Co-authored-by: Sandro Coutinho <sandro@farrelltech.org>
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
||||
// Jad home page: http://www.kpdus.com/jad.html
|
||||
// Decompiler options: packimports(3)
|
||||
|
||||
import java.awt.Component;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Image;
|
||||
import java.awt.image.ColorModel;
|
||||
import java.awt.image.DirectColorModel;
|
||||
import java.awt.image.ImageConsumer;
|
||||
import java.awt.image.ImageObserver;
|
||||
import java.awt.image.ImageProducer;
|
||||
|
||||
final class RSImageProducer implements ImageProducer, ImageObserver {
|
||||
|
||||
public RSImageProducer(int i, int j, Component component) {
|
||||
anInt316 = i;
|
||||
anInt317 = j;
|
||||
anIntArray315 = new int[i * j];
|
||||
aColorModel318 = new DirectColorModel(32, 0xff0000, 65280, 255);
|
||||
anImage320 = component.createImage(this);
|
||||
method239();
|
||||
component.prepareImage(anImage320, this);
|
||||
method239();
|
||||
component.prepareImage(anImage320, this);
|
||||
method239();
|
||||
component.prepareImage(anImage320, this);
|
||||
initDrawingArea();
|
||||
}
|
||||
|
||||
public void initDrawingArea() {
|
||||
DrawingArea.initDrawingArea(anInt317, anInt316, anIntArray315);
|
||||
}
|
||||
|
||||
public void drawGraphics(int i, Graphics g, int k) {
|
||||
method239();
|
||||
g.drawImage(anImage320, k, i, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void addConsumer(ImageConsumer imageconsumer) {
|
||||
anImageConsumer319 = imageconsumer;
|
||||
imageconsumer.setDimensions(anInt316, anInt317);
|
||||
imageconsumer.setProperties(null);
|
||||
imageconsumer.setColorModel(aColorModel318);
|
||||
imageconsumer.setHints(14);
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized boolean isConsumer(ImageConsumer imageconsumer) {
|
||||
return anImageConsumer319 == imageconsumer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void removeConsumer(ImageConsumer imageconsumer) {
|
||||
if (anImageConsumer319 == imageconsumer) {
|
||||
anImageConsumer319 = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startProduction(ImageConsumer imageconsumer) {
|
||||
addConsumer(imageconsumer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestTopDownLeftRightResend(ImageConsumer imageconsumer) {
|
||||
System.out.println("TDLR");
|
||||
}
|
||||
|
||||
private synchronized void method239() {
|
||||
if (anImageConsumer319 != null) {
|
||||
anImageConsumer319.setPixels(0, 0, anInt316, anInt317, aColorModel318, anIntArray315, 0, anInt316);
|
||||
anImageConsumer319.imageComplete(2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean imageUpdate(Image image, int i, int j, int k, int l, int i1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public final int[] anIntArray315;
|
||||
private final int anInt316;
|
||||
private final int anInt317;
|
||||
private final ColorModel aColorModel318;
|
||||
private ImageConsumer anImageConsumer319;
|
||||
private final Image anImage320;
|
||||
}
|
||||
Reference in New Issue
Block a user