Created HitType datatable and removed unused code

This commit is contained in:
Ziggeh
2014-04-17 12:47:48 +02:00
parent 8379c2f87b
commit 7f796d211e
4 changed files with 58 additions and 29 deletions
+1 -28
View File
@@ -64,6 +64,7 @@ import engine.resources.objects.SWGObject;
import engine.resources.scene.Point3D;
import engine.resources.service.INetworkDispatch;
import engine.resources.service.INetworkRemoteEvent;
import resources.datatables.HitType;
public class CombatService implements INetworkDispatch {
@@ -1353,33 +1354,5 @@ public class CombatService implements INetworkDispatch {
defenderList.stream().forEach(attacker -> defender.removeDefender(attacker));
}
}
public enum HitType{;
public static final byte MISS = 0;
public static final byte DODGE = 1;
public static final byte PARRY = 2;
public static final byte STRIKETHROUGH = 3;
public static final byte CRITICAL = 4;
public static final byte PUNISHING = 5;
public static final byte HIT = 6;
public static final byte BLOCK = 7;
public static final byte EVASION = 8;
public static final byte GLANCE = 9;
}
public enum ElementalType {;
public static final int KINETIC = 1;
public static final int ENERGY = 2;
public static final int BLAST = 4;
public static final int STUN = 8;
public static final int HEAT = 32;
public static final int COLD = 64;
public static final int ACID = 128;
public static final int ELECTRICITY = 256;
}
}