Browse Source

Related enums moved close in file

feature-config-usage
MagicBot 1 day ago
parent
commit
808eb989ea
  1. 102
      src/engine/mbEnums.java

102
src/engine/mbEnums.java

@ -1373,6 +1373,57 @@ public class mbEnums { @@ -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 {
IDLE,
@ -2830,57 +2881,6 @@ public class mbEnums { @@ -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 {
BANNED,
ACTIVE,

Loading…
Cancel
Save