forked from MagicBane/Server
Related enums moved close in file
This commit is contained in:
+51
-51
@@ -1373,6 +1373,57 @@ public class mbEnums {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@FunctionalInterface
|
||||||
|
public interface PowerActionFunction {
|
||||||
|
void execute();
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum PowerActionType {
|
||||||
|
ApplyEffect(Actions::ApplyEffect),
|
||||||
|
ApplyEffects(Actions::ApplyEffects),
|
||||||
|
Block(Actions::Block),
|
||||||
|
Charm(Actions::Charm),
|
||||||
|
ClaimMine(Actions::ClaimMine),
|
||||||
|
ClearAggro(Actions::ClearAggro),
|
||||||
|
ClearNearbyAggro(Actions::ClearNearbyAggro),
|
||||||
|
Confusion(Actions::Confusion),
|
||||||
|
CreateMob(Actions::CreateMob),
|
||||||
|
DamageOverTime(Actions::DamageOverTime),
|
||||||
|
DeferredPower(Actions::DeferredPower),
|
||||||
|
DirectDamage(Actions::DirectDamage),
|
||||||
|
Invis(Actions::Invis),
|
||||||
|
MobRecall(Actions::MobRecall),
|
||||||
|
Peek(Actions::Peek),
|
||||||
|
Recall(Actions::Recall),
|
||||||
|
RemoveEffect(Actions::RemoveEffect),
|
||||||
|
Resurrect(Actions::Resurrect),
|
||||||
|
RunegateTeleport(Actions::RunegateTeleport),
|
||||||
|
SetItemFlag(Actions::SetItemFlag),
|
||||||
|
SimpleDamage(Actions::SimpleDamage),
|
||||||
|
SpireDisable(Actions::SpireDisable),
|
||||||
|
Steal(Actions::Steal),
|
||||||
|
Summon(Actions::Summon),
|
||||||
|
Teleport(Actions::Teleport),
|
||||||
|
Track(Actions::Track),
|
||||||
|
TransferStat(Actions::TransferStat),
|
||||||
|
TransferStatOT(Actions::TransferStatOT),
|
||||||
|
Transform(Actions::Transform),
|
||||||
|
TreeChoke(Actions::TreeChoke);
|
||||||
|
|
||||||
|
private final PowerActionFunction function;
|
||||||
|
|
||||||
|
PowerActionType(PowerActionFunction function) {
|
||||||
|
this.function = function;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Need to figure out what this signature looks like.
|
||||||
|
// Identical to behaviours?
|
||||||
|
|
||||||
|
public void execute() {
|
||||||
|
function.execute();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public enum MovementState {
|
public enum MovementState {
|
||||||
|
|
||||||
IDLE,
|
IDLE,
|
||||||
@@ -2830,57 +2881,6 @@ public class mbEnums {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@FunctionalInterface
|
|
||||||
public interface PowerActionFunction {
|
|
||||||
void execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum PowerActionType {
|
|
||||||
ApplyEffect(Actions::ApplyEffect),
|
|
||||||
ApplyEffects(Actions::ApplyEffects),
|
|
||||||
Block(Actions::Block),
|
|
||||||
Charm(Actions::Charm),
|
|
||||||
ClaimMine(Actions::ClaimMine),
|
|
||||||
ClearAggro(Actions::ClearAggro),
|
|
||||||
ClearNearbyAggro(Actions::ClearNearbyAggro),
|
|
||||||
Confusion(Actions::Confusion),
|
|
||||||
CreateMob(Actions::CreateMob),
|
|
||||||
DamageOverTime(Actions::DamageOverTime),
|
|
||||||
DeferredPower(Actions::DeferredPower),
|
|
||||||
DirectDamage(Actions::DirectDamage),
|
|
||||||
Invis(Actions::Invis),
|
|
||||||
MobRecall(Actions::MobRecall),
|
|
||||||
Peek(Actions::Peek),
|
|
||||||
Recall(Actions::Recall),
|
|
||||||
RemoveEffect(Actions::RemoveEffect),
|
|
||||||
Resurrect(Actions::Resurrect),
|
|
||||||
RunegateTeleport(Actions::RunegateTeleport),
|
|
||||||
SetItemFlag(Actions::SetItemFlag),
|
|
||||||
SimpleDamage(Actions::SimpleDamage),
|
|
||||||
SpireDisable(Actions::SpireDisable),
|
|
||||||
Steal(Actions::Steal),
|
|
||||||
Summon(Actions::Summon),
|
|
||||||
Teleport(Actions::Teleport),
|
|
||||||
Track(Actions::Track),
|
|
||||||
TransferStat(Actions::TransferStat),
|
|
||||||
TransferStatOT(Actions::TransferStatOT),
|
|
||||||
Transform(Actions::Transform),
|
|
||||||
TreeChoke(Actions::TreeChoke);
|
|
||||||
|
|
||||||
private final PowerActionFunction function;
|
|
||||||
|
|
||||||
PowerActionType(PowerActionFunction function) {
|
|
||||||
this.function = function;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Need to figure out what this signature looks like.
|
|
||||||
// Identical to behaviours?
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
function.execute();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum AccountStatus {
|
public enum AccountStatus {
|
||||||
BANNED,
|
BANNED,
|
||||||
ACTIVE,
|
ACTIVE,
|
||||||
|
|||||||
Reference in New Issue
Block a user