forked from MagicBane/Server
Renamed class to not conflict with the java.lang version.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package engine.objects;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.mbEnums;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.net.ByteBufferWriter;
|
||||
|
||||
@@ -32,9 +32,9 @@ public class Runegate {
|
||||
|
||||
// Chaos, Khar and Oblivion are on by default
|
||||
|
||||
_portals[Enum.PortalType.CHAOS.ordinal()].activate(false);
|
||||
_portals[Enum.PortalType.OBLIV.ordinal()].activate(false);
|
||||
_portals[Enum.PortalType.MERCHANT.ordinal()].activate(false);
|
||||
_portals[mbEnums.PortalType.CHAOS.ordinal()].activate(false);
|
||||
_portals[mbEnums.PortalType.OBLIV.ordinal()].activate(false);
|
||||
_portals[mbEnums.PortalType.MERCHANT.ordinal()].activate(false);
|
||||
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public class Runegate {
|
||||
|
||||
for (int gateID : gateList) {
|
||||
|
||||
Building gateBuilding = (Building) DbManager.getObject(Enum.GameObjectType.Building, gateID);
|
||||
Building gateBuilding = (Building) DbManager.getObject(mbEnums.GameObjectType.Building, gateID);
|
||||
|
||||
Runegate runegate = new Runegate(gateBuilding);
|
||||
_runegates.put(gateID, runegate);
|
||||
@@ -68,13 +68,13 @@ public class Runegate {
|
||||
return openGateIDStrings;
|
||||
}
|
||||
|
||||
public void activatePortal(Enum.PortalType portalType) {
|
||||
public void activatePortal(mbEnums.PortalType portalType) {
|
||||
|
||||
this._portals[portalType.ordinal()].activate(true);
|
||||
|
||||
}
|
||||
|
||||
public void deactivatePortal(Enum.PortalType portalType) {
|
||||
public void deactivatePortal(mbEnums.PortalType portalType) {
|
||||
|
||||
this._portals[portalType.ordinal()].deactivate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user