Commit my current work on SnD kits

This commit is contained in:
libraryaddict 2014-11-30 12:12:02 +13:00
parent 8afb803d5d
commit 00d3e66ac4
4 changed files with 125 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import java.util.ArrayList;
import nautilus.game.arcade.ArcadeManager;
import nautilus.game.arcade.game.games.searchanddestroy.kits.bow.*;
import nautilus.game.arcade.game.games.searchanddestroy.kits.trooper.*;
import nautilus.game.arcade.kit.Kit;
public class KitManager
@ -32,7 +33,7 @@ public class KitManager
public KitManager(SearchAndDestroy search)
{
ArcadeManager man = search.getArcadeManager();
{
{ // Register bow kits
ArrayList<UpgradeKit> children1 = new ArrayList<UpgradeKit>();
ArrayList<UpgradeKit> children2 = new ArrayList<UpgradeKit>();
ArrayList<UpgradeKit> children3 = new ArrayList<UpgradeKit>();
@ -60,6 +61,34 @@ public class KitManager
}
{ // Register sword kits
ArrayList<UpgradeKit> children1 = new ArrayList<UpgradeKit>();
ArrayList<UpgradeKit> children2 = new ArrayList<UpgradeKit>();
ArrayList<UpgradeKit> children3 = new ArrayList<UpgradeKit>();
UpgradeKit sword1 = new UpgradeKit(null, new KitTrooper(man), children1, 4);
_kits.add(sword1);
UpgradeKit sword2 = new UpgradeKit(sword1, new KitTrooper(man), children2, 20, 12);
_kits.add(sword2);
UpgradeKit sword3 = new UpgradeKit(sword1, new KitTrooper(man), children3, 24, 14);
_kits.add(sword3);
UpgradeKit sword4 = new UpgradeKit(sword2, new KitTrooper(man), new ArrayList<UpgradeKit>(), 46, 29, 37);
_kits.add(sword4);
UpgradeKit sword5 = new UpgradeKit(sword2, new KitTrooper(man), new ArrayList<UpgradeKit>(), 48, 29, 39);
_kits.add(sword5);
UpgradeKit sword6 = new UpgradeKit(sword3, new KitTrooper(man), new ArrayList<UpgradeKit>(), 50, 33, 41);
_kits.add(sword6);
UpgradeKit sword7 = new UpgradeKit(sword3, new KitTrooper(man), new ArrayList<UpgradeKit>(), 52, 33, 43);
_kits.add(sword7);
children1.add(sword2);
children1.add(sword3);
children2.add(sword4);
children2.add(sword5);
children3.add(sword6);
children3.add(sword7);
}
}
public Kit[] get_kits()

View File

@ -0,0 +1,29 @@
package nautilus.game.arcade.game.games.searchanddestroy.kits.rogue;
import org.bukkit.Material;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import nautilus.game.arcade.ArcadeManager;
import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.kit.KitAvailability;
import nautilus.game.arcade.kit.Perk;
public class KitRogue extends Kit
{
public KitRogue(ArcadeManager manager)
{
super(manager, "Rogue", KitAvailability.Free, new String[]
{}, new Perk[0], EntityType.ZOMBIE, new ItemStack(Material.WOOD_SWORD));
// TODO Auto-generated constructor stub
}
@Override
public void GiveItems(Player player)
{
}
}

View File

@ -0,0 +1,33 @@
package nautilus.game.arcade.game.games.searchanddestroy.kits.trooper;
import org.bukkit.Material;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.PlayerInventory;
import nautilus.game.arcade.ArcadeManager;
import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.kit.KitAvailability;
import nautilus.game.arcade.kit.Perk;
public class KitAssault extends Kit
{
public KitAssault(ArcadeManager manager)
{
super(manager, "Assault", KitAvailability.Free, new String[]
{
"Bulls Charge ability.", "Temperary speed boost when activated.", "When attacking with the boost on",
"The victim is stunned and slows down"
}, new Perk[0], EntityType.ZOMBIE, new ItemStack(Material.IRON_SWORD));
}
@Override
public void GiveItems(Player player)
{
PlayerInventory inv = player.getInventory();
inv.addItem(new ItemStack(Material.IRON_SWORD));
}
}

View File

@ -0,0 +1,33 @@
package nautilus.game.arcade.game.games.searchanddestroy.kits.trooper;
import org.bukkit.Material;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.PlayerInventory;
import nautilus.game.arcade.ArcadeManager;
import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.kit.KitAvailability;
import nautilus.game.arcade.kit.Perk;
public class KitTrooper extends Kit
{
public KitTrooper(ArcadeManager manager)
{
super(manager, "Trooper", KitAvailability.Free, new String[]
{
"Full iron armor and 2 golden apples"
}, new Perk[0], EntityType.ZOMBIE, new ItemStack(Material.IRON_SWORD));
}
@Override
public void GiveItems(Player player)
{
PlayerInventory inv = player.getInventory();
inv.addItem(new ItemStack(Material.IRON_SWORD));
inv.addItem(new ItemStack(Material.GOLDEN_APPLE, 2));
}
}