DispatchManager is now an official manager singleton.

This commit is contained in:
2024-05-12 13:14:42 -04:00
parent ff17cacda7
commit 96ba17f67a
160 changed files with 642 additions and 718 deletions
@@ -11,6 +11,7 @@ package engine.powers.poweractions;
import engine.InterestManagement.WorldGrid;
import engine.gameManager.ChatManager;
import engine.gameManager.DispatchManager;
import engine.jobs.ChantJob;
import engine.jobs.DeferredPowerJob;
import engine.jobs.FinishEffectTimeJob;
@@ -18,7 +19,6 @@ import engine.math.Vector3fImmutable;
import engine.mbEnums.GameObjectType;
import engine.mbEnums.ModType;
import engine.mbEnums.SourceType;
import engine.net.DispatchMessage;
import engine.net.client.msg.chat.ChatSystemMsg;
import engine.objects.*;
import engine.powers.ActionsBase;
@@ -117,7 +117,7 @@ public class ApplyEffectPowerAction extends AbstractPowerAction {
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
ChatSystemMsg msg = ChatManager.CombatInfo(source, awo);
DispatchMessage.sendToAllInRange(source, msg);
DispatchManager.sendToAllInRange(source, msg);
}
}
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
@@ -249,7 +249,7 @@ public class ApplyEffectPowerAction extends AbstractPowerAction {
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
((Mob) awo).setCombatTarget(source);
ChatSystemMsg msg = ChatManager.CombatInfo(source, awo);
DispatchMessage.sendToAllInRange(source, msg);
DispatchManager.sendToAllInRange(source, msg);
}
}
this.effect.startEffect(source, awo, trains, eff);