forked from MagicBane/Server
Actions use same signature as modifiers
This commit is contained in:
@@ -1375,7 +1375,8 @@ public class mbEnums {
|
||||
|
||||
@FunctionalInterface
|
||||
public interface PowerActionFunction {
|
||||
void execute();
|
||||
void execute(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank);
|
||||
}
|
||||
|
||||
public enum PowerActionType {
|
||||
@@ -1419,8 +1420,9 @@ public class mbEnums {
|
||||
// Need to figure out what this signature looks like.
|
||||
// Identical to behaviours?
|
||||
|
||||
public void execute() {
|
||||
function.execute();
|
||||
public void execute(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
function.execute(caster, target, power, powerAction, effect, modifierEntry, rank);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,124 +1,161 @@
|
||||
package engine.wpakpowers;
|
||||
|
||||
import engine.objects.AbstractCharacter;
|
||||
import engine.objects.AbstractWorldObject;
|
||||
import engine.wpak.data.Effect;
|
||||
import engine.wpak.data.ModifierEntry;
|
||||
import engine.wpak.data.Power;
|
||||
import engine.wpak.data.PowerAction;
|
||||
|
||||
public class Actions {
|
||||
|
||||
public static void ApplyEffect() {
|
||||
public static void ApplyEffect(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
|
||||
}
|
||||
|
||||
public static void ApplyEffects() {
|
||||
public static void ApplyEffects(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Block() {
|
||||
public static void Block(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Charm() {
|
||||
public static void Charm(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void ClaimMine() {
|
||||
public static void ClaimMine(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void ClearAggro() {
|
||||
public static void ClearAggro(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void ClearNearbyAggro() {
|
||||
public static void ClearNearbyAggro(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Confusion() {
|
||||
public static void Confusion(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void CreateMob() {
|
||||
public static void CreateMob(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void DamageOverTime() {
|
||||
public static void DamageOverTime(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void DeferredPower() {
|
||||
public static void DeferredPower(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void DirectDamage() {
|
||||
public static void DirectDamage(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Invis() {
|
||||
public static void Invis(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void MobRecall() {
|
||||
public static void MobRecall(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Peek() {
|
||||
public static void Peek(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Recall() {
|
||||
public static void Recall(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void RemoveEffect() {
|
||||
public static void RemoveEffect(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Resurrect() {
|
||||
public static void Resurrect(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void RunegateTeleport() {
|
||||
public static void RunegateTeleport(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void SetItemFlag() {
|
||||
public static void SetItemFlag(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void SimpleDamage() {
|
||||
public static void SimpleDamage(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void SpireDisable() {
|
||||
public static void SpireDisable(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Steal() {
|
||||
public static void Steal(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Summon() {
|
||||
public static void Summon(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Teleport() {
|
||||
public static void Teleport(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Track() {
|
||||
public static void Track(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void TransferStat() {
|
||||
public static void TransferStat(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void TransferStatOT() {
|
||||
public static void TransferStatOT(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void Transform() {
|
||||
public static void Transform(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
|
||||
public static void TreeChoke() {
|
||||
public static void TreeChoke(AbstractCharacter caster, AbstractWorldObject target, Power power,
|
||||
PowerAction powerAction, Effect effect, ModifierEntry modifierEntry, Integer rank) {
|
||||
System.out.println("PowerAction method called");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user