Renamed class to not conflict with the java.lang version.
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
|
||||
package engine.db.handlers;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.GameObjectType;
|
||||
import engine.Enum.TransactionType;
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.GameObjectType;
|
||||
import engine.mbEnums.TransactionType;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.objects.Building;
|
||||
import engine.objects.City;
|
||||
@@ -39,7 +39,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
|
||||
|
||||
}
|
||||
|
||||
public boolean CREATE_TRANSACTION(int warehouseBuildingID, GameObjectType targetType, int targetUUID, TransactionType transactionType, Enum.ResourceType resource, int amount, DateTime date) {
|
||||
public boolean CREATE_TRANSACTION(int warehouseBuildingID, GameObjectType targetType, int targetUUID, TransactionType transactionType, mbEnums.ResourceType resource, int amount, DateTime date) {
|
||||
|
||||
try (Connection connection = DbManager.getConnection();
|
||||
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_warehouse_transactions` (`warehouseUID`, `targetType`,`targetUID`, `type`,`resource`,`amount`,`date` ) VALUES (?,?,?,?,?,?,?)")) {
|
||||
@@ -105,7 +105,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
|
||||
|
||||
JSONArray locks = new JSONArray();
|
||||
|
||||
for (Enum.ResourceType resource : warehouse.locked)
|
||||
for (mbEnums.ResourceType resource : warehouse.locked)
|
||||
locks.add(resource.name());
|
||||
|
||||
warehouseJSON.put("locked", locks);
|
||||
@@ -142,7 +142,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
|
||||
|
||||
// Locate warehouse building
|
||||
for (Building building : city.parentZone.zoneBuildingSet) {
|
||||
if (building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.WAREHOUSE)) {
|
||||
if (building.getBlueprint().getBuildingGroup().equals(mbEnums.BuildingGroup.WAREHOUSE)) {
|
||||
city.warehouse.building = building;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user