Browse Source

Class cleanup

combat-2
MagicBot 8 months ago
parent
commit
5724608005
  1. 2
      src/engine/gameManager/ForgeManager.java
  2. 4
      src/engine/mobileAI/MobAI.java
  3. 4
      src/engine/mobileAI/Threads/ReSpawner.java
  4. 4
      src/engine/server/world/WorldServer.java

2
src/engine/gameManager/ForgeManager.java

@ -38,7 +38,7 @@ public enum ForgeManager implements Runnable {
// //
// Replaces garbage code that looked as if written by a mental patient with face boils. // Replaces garbage code that looked as if written by a mental patient with face boils.
// //
// @TODO Reuse same set of virtual items for each workOrder cycle. // @TODO Reuse same set of virtual items for all workOrder cycles.
FORGE_MANAGER; FORGE_MANAGER;

4
src/engine/mobileAI/MobAI.java

@ -15,7 +15,7 @@ import engine.math.Vector3fImmutable;
import engine.mbEnums; import engine.mbEnums;
import engine.mbEnums.DispatchChannel; import engine.mbEnums.DispatchChannel;
import engine.mobileAI.Threads.MobAIThread; import engine.mobileAI.Threads.MobAIThread;
import engine.mobileAI.Threads.Respawner; import engine.mobileAI.Threads.ReSpawner;
import engine.mobileAI.utilities.MovementUtilities; import engine.mobileAI.utilities.MovementUtilities;
import engine.net.DispatchMessage; import engine.net.DispatchMessage;
import engine.net.client.msg.PerformActionMsg; import engine.net.client.msg.PerformActionMsg;
@ -740,7 +740,7 @@ public class MobAI {
} }
} else if (System.currentTimeMillis() > aiAgent.deathTime + (aiAgent.spawnDelay * 1000L)) { } else if (System.currentTimeMillis() > aiAgent.deathTime + (aiAgent.spawnDelay * 1000L)) {
aiAgent.respawnTime = aiAgent.deathTime + (aiAgent.spawnDelay * 1000L); aiAgent.respawnTime = aiAgent.deathTime + (aiAgent.spawnDelay * 1000L);
Respawner.respawnQueue.put(aiAgent); ReSpawner.respawnQueue.put(aiAgent);
} }
} catch (Exception e) { } catch (Exception e) {
Logger.info(aiAgent.getObjectUUID() + " " + aiAgent.getName() + " Failed At: CheckForRespawn" + " " + e.getMessage()); Logger.info(aiAgent.getObjectUUID() + " " + aiAgent.getName() + " Failed At: CheckForRespawn" + " " + e.getMessage());

4
src/engine/mobileAI/Threads/Respawner.java → src/engine/mobileAI/Threads/ReSpawner.java

@ -15,7 +15,7 @@ import org.pmw.tinylog.Logger;
import java.util.concurrent.BlockingQueue; import java.util.concurrent.BlockingQueue;
import java.util.concurrent.DelayQueue; import java.util.concurrent.DelayQueue;
public enum Respawner implements Runnable { public enum ReSpawner implements Runnable {
// MB Dev Notes: // MB Dev Notes:
// //
@ -25,7 +25,7 @@ public enum Respawner implements Runnable {
RESPAWNER; RESPAWNER;
public static BlockingQueue<Mob> respawnQueue = new DelayQueue(); public static final BlockingQueue<Mob> respawnQueue = new DelayQueue<>();
@Override @Override
public void run() { public void run() {

4
src/engine/server/world/WorldServer.java

@ -24,7 +24,7 @@ import engine.mbEnums.DispatchChannel;
import engine.mbEnums.MinionType; import engine.mbEnums.MinionType;
import engine.mbEnums.SupportMsgType; import engine.mbEnums.SupportMsgType;
import engine.mobileAI.Threads.MobAIThread; import engine.mobileAI.Threads.MobAIThread;
import engine.mobileAI.Threads.Respawner; import engine.mobileAI.Threads.ReSpawner;
import engine.net.DispatchMessage; import engine.net.DispatchMessage;
import engine.net.Network; import engine.net.Network;
import engine.net.Protocol; import engine.net.Protocol;
@ -455,7 +455,7 @@ public class WorldServer {
//intiate mob respawn thread //intiate mob respawn thread
Logger.info("Starting Mob Respawn Thread"); Logger.info("Starting Mob Respawn Thread");
Respawner.start(); ReSpawner.start();
Logger.info("Loading effect cost maps"); Logger.info("Loading effect cost maps");
DbManager.EffectsResourceCostsQueries.LOAD_ALL_COSTMAPS(); DbManager.EffectsResourceCostsQueries.LOAD_ALL_COSTMAPS();

Loading…
Cancel
Save