removed some unneccsary files

This commit is contained in:
Collin Smith 2019-02-12 02:25:40 -08:00
parent a73e0539c3
commit e5e6be00ce
17 changed files with 0 additions and 274 deletions

View File

@ -1,7 +0,0 @@
package gdx.diablo.engine.component;
public class LayerComponent {
private LayerComponent() {}
}

View File

@ -1,7 +0,0 @@
package gdx.diablo.engine.component;
public class ModeComponent {
private ModeComponent() {}
}

View File

@ -1,7 +0,0 @@
package gdx.diablo.engine.component;
public class PositionComponent {
private PositionComponent() {}
}

View File

@ -1,7 +0,0 @@
package gdx.diablo.engine.component;
public class VelocityComponent {
private VelocityComponent() {}
}

View File

@ -1,7 +0,0 @@
package gdx.diablo.engine.component;
public class WeaponClassComponent {
private WeaponClassComponent() {}
}

View File

@ -1,7 +0,0 @@
package gdx.diablo.engine.system;
public class MovementSystem {
private MovementSystem() {}
}

View File

@ -1,21 +0,0 @@
package gdx.diablo.engine.system;
import com.badlogic.ashley.core.ComponentMapper;
import com.badlogic.ashley.core.Entity;
import com.badlogic.ashley.core.Family;
import com.badlogic.ashley.systems.IteratingSystem;
import gdx.diablo.engine.component.WeaponClassComponent;
public class WeaponSystem extends IteratingSystem {
private ComponentMapper<WeaponClassComponent> wc = ComponentMapper.getFor(WeaponClassComponent.class);
public WeaponSystem() {
super(Family.all(WeaponClassComponent.class).get());
}
@Override
protected void processEntity(Entity entity, float delta) {
}
}

View File

@ -1,7 +0,0 @@
package gdx.diablo.net;
public class Codec {
private Codec() {}
}

View File

@ -1,9 +0,0 @@
package gdx.diablo.net;
import java.io.DataInputStream;
public class ConnectPacket {
ConnectPacket(DataInputStream in) {
}
}

View File

@ -1,7 +0,0 @@
package gdx.diablo.net;
public class Packet {
private Packet() {}
}

View File

@ -1,7 +0,0 @@
package gdx.diablo.net;
public class UploadD2SPacket {
private UploadD2SPacket() {}
}

View File

@ -1,34 +0,0 @@
package gdx.diablo.net.d2gs;
import com.google.common.io.LittleEndianDataInputStream;
import com.google.common.io.LittleEndianDataOutputStream;
import java.io.IOException;
import gdx.diablo.net.Codec;
public class WalkToLocationPacket extends Codec {
static final int SIZE = 4;
public int x;
public int y;
WalkToLocationPacket() {}
@Override
public void encode(LittleEndianDataOutputStream out) throws IOException {
out.writeShort(x);
out.writeShort(y);
}
@Override
public void decode(LittleEndianDataInputStream in) throws IOException {
x = in.readUnsignedShort();
y = in.readUnsignedShort();
}
@Override
public String toString() {
return x + ", " + y;
}
}

View File

@ -1,34 +0,0 @@
package gdx.diablo.net.d2gs;
import com.google.common.io.LittleEndianDataInputStream;
import com.google.common.io.LittleEndianDataOutputStream;
import java.io.IOException;
import gdx.diablo.net.Codec;
public class MoveToLocationPacket extends Codec {
static final int SIZE = 4;
public int x;
public int y;
MoveToLocationPacket() {}
@Override
public void encode(LittleEndianDataOutputStream out) throws IOException {
out.writeShort(x);
out.writeShort(y);
}
@Override
public void decode(LittleEndianDataInputStream in) throws IOException {
x = in.readUnsignedShort();
y = in.readUnsignedShort();
}
@Override
public String toString() {
return x + ", " + y;
}
}

View File

@ -1,13 +0,0 @@
package gdx.diablo.screen;
import com.badlogic.gdx.ScreenAdapter;
import gdx.diablo.entity3.Player;
public abstract class CharacterScreenAdapter extends ScreenAdapter {
public CharacterScreenAdapter(Player player) {
}
}

View File

@ -1,5 +0,0 @@
import static org.junit.Assert.*;
public class GameLogonPacketTest {
}

View File

@ -1,49 +0,0 @@
package gdx.diablo.net.d2gs;
import org.junit.Assert;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import gdx.diablo.util.DebugUtils;
public class WalkToLocationPacketTest {
private static final int X = 0xFF;
private static final int Y = 0xFFFF;
private static final byte[] BYTES = new byte[]{(byte) 0xFF, 0x00, (byte) 0xFF, (byte) 0xFF};
@Test
public void encode() {
WalkToLocationPacket packet = new WalkToLocationPacket() {{
x = X;
y = Y;
}};
ByteArrayOutputStream out = new ByteArrayOutputStream(WalkToLocationPacket.SIZE);
try {
packet.encode(out);
} catch (Throwable t) {
System.err.println(t.getMessage());
}
byte[] bytes = out.toByteArray();
System.out.println(packet + " -> " + DebugUtils.toByteArray(bytes));
Assert.assertArrayEquals(BYTES, bytes);
}
@Test
public void decode() {
WalkToLocationPacket packet = new WalkToLocationPacket();
try {
ByteArrayInputStream in = new ByteArrayInputStream(BYTES);
packet.decode(in);
} catch (Throwable t) {
System.out.println(t.getMessage());
}
System.out.println(DebugUtils.toByteArray(BYTES) + " -> " + packet);
Assert.assertEquals(X, packet.x);
Assert.assertEquals(Y, packet.y);
}
}

View File

@ -1,46 +0,0 @@
package gdx.diablo.net.d2gs;
import org.junit.Assert;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import gdx.diablo.util.DebugUtils;
public class MoveToLocationPacketTest {
@Test
public void encode() {
MoveToLocationPacket packet = new MoveToLocationPacket() {{
x = 31;
y = 63;
}};
ByteArrayOutputStream out = new ByteArrayOutputStream(MoveToLocationPacket.SIZE);
try {
packet.encode(out);
} catch (Throwable t) {
System.err.println(t.getMessage());
}
byte[] bytes = out.toByteArray();
System.out.println(DebugUtils.toByteArray(bytes));
Assert.assertArrayEquals(new byte[]{0x1F, 0x00, 0x3F, 0x00}, bytes);
}
@Test
public void decode() {
MoveToLocationPacket packet = new MoveToLocationPacket();
try {
ByteArrayInputStream in = new ByteArrayInputStream(new byte[]{0x1F, 0x00, 0x3F, 0x00});
packet.decode(in);
} catch (Throwable t) {
System.out.println(t.getMessage());
}
System.out.println(packet);
Assert.assertEquals(31, packet.x);
Assert.assertEquals(63, packet.y);
}
}