From cf65cc790159d1bc2cd7e349fd4f2cf954ef4666 Mon Sep 17 00:00:00 2001 From: Treeku Date: Mon, 25 Aug 2014 19:46:56 +0100 Subject: [PATCH] Added datatables for CombatCommands --- src/resources/datatables/AttackType.java | 41 +++++++++++++++++ .../datatables/DelayAttackEggPosition.java | 30 ++++++++++++ src/resources/datatables/InvalidWeapon.java | 46 +++++++++++++++++++ src/resources/datatables/Target.java | 30 ++++++++++++ src/resources/datatables/TargetType.java | 32 +++++++++++++ src/resources/datatables/ValidWeapon.java | 46 +++++++++++++++++++ src/resources/datatables/WeaponType.java | 1 + 7 files changed, 226 insertions(+) create mode 100644 src/resources/datatables/AttackType.java create mode 100644 src/resources/datatables/DelayAttackEggPosition.java create mode 100644 src/resources/datatables/InvalidWeapon.java create mode 100644 src/resources/datatables/Target.java create mode 100644 src/resources/datatables/TargetType.java create mode 100644 src/resources/datatables/ValidWeapon.java diff --git a/src/resources/datatables/AttackType.java b/src/resources/datatables/AttackType.java new file mode 100644 index 00000000..25f21c94 --- /dev/null +++ b/src/resources/datatables/AttackType.java @@ -0,0 +1,41 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.datatables; + +public class AttackType { + + public static final byte CONE = 0; + public static final byte SINGLE_TARGET = 1; + public static final byte AREA = 2; + public static final byte TARGET_AREA = 3; + public static final byte DUAL_WIELD = 4; + public static final byte RAMPAGE = 5; + public static final byte RANDOM_HATE_TARGET = 6; + public static final byte RANDOM_HATE_TARGET_CONE = 7; + public static final byte RANDOM_HATE_TARGET_CONE_TERMINUS = 8; + public static final byte HATE_LIST = 9; + public static final byte RANDOM_HATE_MULTI = 10; + public static final byte AREA_PROGRESSIVE = 11; + public static final byte SPLIT_DAMAGE_TARGET_AREA = 12; + public static final byte DISTANCE_FARTHEST = 13; + +} diff --git a/src/resources/datatables/DelayAttackEggPosition.java b/src/resources/datatables/DelayAttackEggPosition.java new file mode 100644 index 00000000..1e1003e9 --- /dev/null +++ b/src/resources/datatables/DelayAttackEggPosition.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.datatables; + +public class DelayAttackEggPosition { + + public static final byte SELF = 1; + public static final byte TARGETED_OBJECT = 2; + public static final byte LOCATION = 3; + +} diff --git a/src/resources/datatables/InvalidWeapon.java b/src/resources/datatables/InvalidWeapon.java new file mode 100644 index 00000000..b6cf9eff --- /dev/null +++ b/src/resources/datatables/InvalidWeapon.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.datatables; + +public class InvalidWeapon { + + public static final byte NONE = 0; + public static final byte RIFLE = 1; + public static final byte CARBINE = 2; + public static final byte PISTOL = 3; + public static final byte HEAVY = 4; + public static final byte ONEHAND_MELEE = 5; + public static final byte TWOHAND_MELEE = 6; + public static final byte UNARMED = 7; + public static final byte POLEARM = 8; + public static final byte THROWN = 9; + public static final byte ONEHAND_LIGHTSABER = 10; + public static final byte TWOHAND_LIGHTSABER = 11; + public static final byte POLEARM_LIGHTSABER = 12; + public static final byte GROUND_TARGETTING = 13; + public static final byte DIRECTIONAL = 14; + public static final byte RANGED = 28; + public static final byte MELEE = 29; + public static final byte ALL = 30; + public static final byte ALL_LIGHTSABERS = 31; + +} diff --git a/src/resources/datatables/Target.java b/src/resources/datatables/Target.java new file mode 100644 index 00000000..13b63750 --- /dev/null +++ b/src/resources/datatables/Target.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.datatables; + +public class Target { + + public static final byte FRIEND = 0; + public static final byte ENEMY = 1; + public static final byte OTHER = 2; + +} \ No newline at end of file diff --git a/src/resources/datatables/TargetType.java b/src/resources/datatables/TargetType.java new file mode 100644 index 00000000..93f51571 --- /dev/null +++ b/src/resources/datatables/TargetType.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.datatables; + +public class TargetType { + + public static final byte NONE = 0; + public static final byte REQUIRED = 1; + public static final byte OPTIONAL = 2; + public static final byte LOCATION = 3; + public static final byte ALL = 4; + +} \ No newline at end of file diff --git a/src/resources/datatables/ValidWeapon.java b/src/resources/datatables/ValidWeapon.java new file mode 100644 index 00000000..3f44c682 --- /dev/null +++ b/src/resources/datatables/ValidWeapon.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.datatables; + +public class ValidWeapon { + + public static final byte NONE = 0; + public static final byte RIFLE = 1; + public static final byte CARBINE = 2; + public static final byte PISTOL = 3; + public static final byte HEAVY = 4; + public static final byte ONEHAND_MELEE = 5; + public static final byte TWOHAND_MELEE = 6; + public static final byte UNARMED = 7; + public static final byte POLEARM = 8; + public static final byte THROWN = 9; + public static final byte ONEHAND_LIGHTSABER = 10; + public static final byte TWOHAND_LIGHTSABER = 11; + public static final byte POLEARM_LIGHTSABER = 12; + public static final byte GROUND_TARGETTING = 13; + public static final byte DIRECTIONAL = 14; + public static final byte RANGED = 28; + public static final byte MELEE = 29; + public static final byte ALL = 30; + public static final byte ALL_LIGHTSABERS = 31; + +} \ No newline at end of file diff --git a/src/resources/datatables/WeaponType.java b/src/resources/datatables/WeaponType.java index 187332a4..e2f5df92 100644 --- a/src/resources/datatables/WeaponType.java +++ b/src/resources/datatables/WeaponType.java @@ -26,6 +26,7 @@ public class WeaponType { public static final int RIFLE = 0; public static final int CARBINE = 1; public static final int PISTOL = 2; + public static final int HEAVY = 3; public static final int ONEHANDEDMELEE = 4; public static final int TWOHANDEDMELEE = 5; public static final int UNARMED = 6;