Renamed class to not conflict with the java.lang version.

This commit is contained in:
2024-04-05 07:59:44 -04:00
parent dd84615ca1
commit c1ee6f5b52
388 changed files with 1807 additions and 1779 deletions
@@ -8,7 +8,7 @@
package engine.net.client.handlers;
import engine.Enum;
import engine.mbEnums;
import engine.exception.MsgSendException;
import engine.gameManager.ChatManager;
import engine.gameManager.DbManager;
@@ -176,7 +176,7 @@ public class TrainMsgHandler extends AbstractClientMsgHandler {
Building building = npc.getBuilding();
if (building != null && building.getProtectionState().equals(Enum.ProtectionState.NPC))
if (building != null && building.getProtectionState().equals(mbEnums.ProtectionState.NPC))
building = null;
if (building != null && building.getStrongboxValue() + (profitCost - cost) > building.getMaxGold()) {
@@ -196,7 +196,7 @@ public class TrainMsgHandler extends AbstractClientMsgHandler {
playerCharacter.charItemManager.buyFromNPC(building, (int) profitCost, (int) (profitCost - cost));
dispatch = Dispatch.borrow(playerCharacter, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
//update trainer window
@@ -204,7 +204,7 @@ public class TrainMsgHandler extends AbstractClientMsgHandler {
TrainerInfoMsg tim = new TrainerInfoMsg(msg.npcType, msg.npcID, npc.getSellPercent(playerCharacter));
tim.setTrainPercent(npc.getSellPercent(playerCharacter));
dispatch = Dispatch.borrow(playerCharacter, tim);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
}
}
@@ -247,7 +247,7 @@ public class TrainMsgHandler extends AbstractClientMsgHandler {
Building building = npc.getBuilding();
if (building != null && building.getProtectionState().equals(Enum.ProtectionState.NPC))
if (building != null && building.getProtectionState().equals(mbEnums.ProtectionState.NPC))
building = null;
if (building != null && building.getStrongboxValue() + (profitCost - cost) > building.getMaxGold()) {
@@ -263,7 +263,7 @@ public class TrainMsgHandler extends AbstractClientMsgHandler {
//train succeeded
dispatch = Dispatch.borrow(playerCharacter, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
//update trainer window
@@ -271,7 +271,7 @@ public class TrainMsgHandler extends AbstractClientMsgHandler {
TrainerInfoMsg tim = new TrainerInfoMsg(msg.npcType, msg.npcID, npc.getSellPercent(playerCharacter));
tim.setTrainPercent(npc.getSellPercent(playerCharacter));
dispatch = Dispatch.borrow(playerCharacter, tim);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
DispatchMessage.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
}
}
}