forked from MagicBane/Server
Renamed class to not conflict with the java.lang version.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
package engine.devcmd.cmds;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.mbEnums;
|
||||
import engine.devcmd.AbstractDevCmd;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.math.Vector3fImmutable;
|
||||
@@ -27,7 +27,7 @@ public class GotoObj extends AbstractDevCmd {
|
||||
|
||||
int uuid;
|
||||
Vector3fImmutable targetLoc = Vector3fImmutable.ZERO;
|
||||
Enum.DbObjectType objectType;
|
||||
mbEnums.DbObjectType objectType;
|
||||
|
||||
try {
|
||||
uuid = Integer.parseInt(words[0]);
|
||||
@@ -41,37 +41,37 @@ public class GotoObj extends AbstractDevCmd {
|
||||
switch (objectType) {
|
||||
|
||||
case NPC:
|
||||
NPC npc = (NPC) DbManager.getFromCache(Enum.GameObjectType.NPC, uuid);
|
||||
NPC npc = (NPC) DbManager.getFromCache(mbEnums.GameObjectType.NPC, uuid);
|
||||
|
||||
if (npc != null)
|
||||
targetLoc = npc.getLoc();
|
||||
break;
|
||||
case MOB:
|
||||
Mob mob = (Mob) DbManager.getFromCache(Enum.GameObjectType.Mob, uuid);
|
||||
Mob mob = (Mob) DbManager.getFromCache(mbEnums.GameObjectType.Mob, uuid);
|
||||
|
||||
if (mob != null)
|
||||
targetLoc = mob.getLoc();
|
||||
break;
|
||||
case CHARACTER:
|
||||
PlayerCharacter playerCharacter = (PlayerCharacter) DbManager.getFromCache(Enum.GameObjectType.PlayerCharacter, uuid);
|
||||
PlayerCharacter playerCharacter = (PlayerCharacter) DbManager.getFromCache(mbEnums.GameObjectType.PlayerCharacter, uuid);
|
||||
|
||||
if (playerCharacter != null)
|
||||
targetLoc = playerCharacter.getLoc();
|
||||
break;
|
||||
case BUILDING:
|
||||
Building building = (Building) DbManager.getFromCache(Enum.GameObjectType.Building, uuid);
|
||||
Building building = (Building) DbManager.getFromCache(mbEnums.GameObjectType.Building, uuid);
|
||||
|
||||
if (building != null)
|
||||
targetLoc = building.getLoc();
|
||||
break;
|
||||
case ZONE:
|
||||
Zone zone = (Zone) DbManager.getFromCache(Enum.GameObjectType.Zone, uuid);
|
||||
Zone zone = (Zone) DbManager.getFromCache(mbEnums.GameObjectType.Zone, uuid);
|
||||
|
||||
if (zone != null)
|
||||
targetLoc = zone.getLoc();
|
||||
break;
|
||||
case CITY:
|
||||
City city = (City) DbManager.getFromCache(Enum.GameObjectType.City, uuid);
|
||||
City city = (City) DbManager.getFromCache(mbEnums.GameObjectType.City, uuid);
|
||||
|
||||
if (city != null)
|
||||
targetLoc = city.getLoc();
|
||||
|
||||
Reference in New Issue
Block a user