2013-08-27 17:14:08 +02:00
|
|
|
package nautilus.game.arcade.kit;
|
|
|
|
|
|
|
|
import nautilus.game.arcade.ArcadeManager;
|
|
|
|
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import org.bukkit.event.Listener;
|
|
|
|
|
|
|
|
public abstract class Perk implements Listener
|
|
|
|
{
|
|
|
|
public ArcadeManager Manager;
|
|
|
|
public Kit Kit;
|
|
|
|
|
|
|
|
private String _perkName;
|
|
|
|
private String[] _perkDesc;
|
|
|
|
|
|
|
|
private boolean _display;
|
|
|
|
|
|
|
|
public Perk(String name, String[] perkDesc)
|
|
|
|
{
|
|
|
|
_perkName = name;
|
|
|
|
_perkDesc = perkDesc;
|
|
|
|
_display = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Perk(String name, String[] perkDesc, boolean display)
|
|
|
|
{
|
|
|
|
_perkName = name;
|
|
|
|
_perkDesc = perkDesc;
|
|
|
|
_display = display;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void SetHost(Kit kit)
|
|
|
|
{
|
|
|
|
Manager = kit.Manager;
|
|
|
|
Kit = kit;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String GetName()
|
|
|
|
{
|
|
|
|
return _perkName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String[] GetDesc()
|
|
|
|
{
|
|
|
|
return _perkDesc;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean IsVisible()
|
|
|
|
{
|
|
|
|
return _display;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Apply(Player player)
|
|
|
|
{
|
|
|
|
//Null Default
|
|
|
|
}
|
2015-07-07 02:30:20 +02:00
|
|
|
|
|
|
|
public void registeredEvents()
|
|
|
|
{
|
|
|
|
// When listener has been registered
|
|
|
|
}
|
2013-08-27 17:14:08 +02:00
|
|
|
}
|