Diagonal movement GeoEngine.
This commit is contained in:
@@ -31,7 +31,7 @@ import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.TerritoryTable;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.NpcData;
|
||||
import com.l2jmobius.gameserver.datatables.NpcPersonalAIData;
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
||||
@@ -612,7 +612,7 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
||||
final int randY = newlocy + Rnd.get(Config.MOB_MIN_SPAWN_RANGE, Config.MOB_MAX_SPAWN_RANGE);
|
||||
|
||||
final boolean isQuestMonster = (mob.getTitle() != null) && mob.getTitle().contains("Quest");
|
||||
if (mob.isMonster() && !isQuestMonster && !mob.isWalker() && !mob.isInsideZone(ZoneId.NO_BOOKMARK) && GeoData.getInstance().canSeeTarget(newlocx, newlocy, newlocz, randX, randY, newlocz) && (getInstanceId() == 0) && !getTemplate().isUndying() && !mob.isRaid() && !mob.isRaidMinion() && !Config.MOBS_LIST_NOT_RANDOM.contains(mob.getId()))
|
||||
if (mob.isMonster() && !isQuestMonster && !mob.isWalker() && !mob.isInsideZone(ZoneId.NO_BOOKMARK) && GeoEngine.getInstance().canMoveToTarget(newlocx, newlocy, newlocz, randX, randY, newlocz, getInstanceId()) && (getInstanceId() == 0) && !getTemplate().isUndying() && !mob.isRaid() && !mob.isRaidMinion() && !Config.MOBS_LIST_NOT_RANDOM.contains(mob.getId()))
|
||||
{
|
||||
newlocx = randX;
|
||||
newlocy = randY;
|
||||
@@ -623,7 +623,7 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
||||
// don't correct z of flying npc's
|
||||
if (!mob.isFlying())
|
||||
{
|
||||
newlocz = GeoData.getInstance().getSpawnHeight(newlocx, newlocy, newlocz);
|
||||
newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||
}
|
||||
|
||||
mob.stopAllEffects();
|
||||
|
@@ -26,9 +26,9 @@ import com.l2jmobius.gameserver.model.interfaces.IPositionable;
|
||||
*/
|
||||
public class Location implements IPositionable
|
||||
{
|
||||
private int _x;
|
||||
private int _y;
|
||||
private int _z;
|
||||
protected int _x;
|
||||
protected int _y;
|
||||
protected int _z;
|
||||
private int _heading;
|
||||
private int _instanceId;
|
||||
|
||||
|
@@ -49,9 +49,7 @@ import com.l2jmobius.gameserver.enums.InstanceType;
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
import com.l2jmobius.gameserver.enums.ShotType;
|
||||
import com.l2jmobius.gameserver.enums.Team;
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geodata.pathfinding.AbstractNodeLoc;
|
||||
import com.l2jmobius.gameserver.geodata.pathfinding.PathFinding;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.idfactory.IdFactory;
|
||||
import com.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.MapRegionManager;
|
||||
@@ -1006,7 +1004,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
stopEffectsOnAction();
|
||||
|
||||
// GeoData Los Check here (or dz > 1000)
|
||||
if (!GeoData.getInstance().canSeeTarget(this, target))
|
||||
if (!GeoEngine.getInstance().canSeeTarget(this, target))
|
||||
{
|
||||
sendPacket(SystemMessageId.CANNOT_SEE_TARGET);
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
@@ -3433,7 +3431,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
|
||||
public boolean disregardingGeodata;
|
||||
public int onGeodataPathIndex;
|
||||
public List<AbstractNodeLoc> geoPath;
|
||||
public List<Location> geoPath;
|
||||
public int geoPathAccurateTx;
|
||||
public int geoPathAccurateTy;
|
||||
public int geoPathGtx;
|
||||
@@ -4030,9 +4028,9 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
|
||||
// Z coordinate will follow geodata or client values
|
||||
if ((Config.COORD_SYNCHRONIZE == 2) && !isFloating && !m.disregardingGeodata && ((GameTimeController.getInstance().getGameTicks() % 10) == 0 // once a second to reduce possible cpu load
|
||||
) && GeoData.getInstance().hasGeo(xPrev, yPrev))
|
||||
) && GeoEngine.getInstance().hasGeo(xPrev, yPrev))
|
||||
{
|
||||
final int geoHeight = GeoData.getInstance().getSpawnHeight(xPrev, yPrev, zPrev);
|
||||
final int geoHeight = GeoEngine.getInstance().getHeight(xPrev, yPrev, zPrev);
|
||||
dz = m._zDestination - geoHeight;
|
||||
// quite a big difference, compare to validatePosition packet
|
||||
if (isPlayer() && (Math.abs(getActingPlayer().getClientZ() - geoHeight) > 200) && (Math.abs(getActingPlayer().getClientZ() - geoHeight) < 1500))
|
||||
@@ -4392,7 +4390,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
|
||||
// Movement checks:
|
||||
// When pathfinding enabled, for all characters except monsters returning home (could be changed later to teleport if pathfinding fails)
|
||||
if (((Config.PATHFINDING > 0) && (!(isAttackable() && ((L2Attackable) this).isReturningToSpawnPoint()))) //
|
||||
if ((Config.PATHFINDING && (!(isAttackable() && ((L2Attackable) this).isReturningToSpawnPoint()))) //
|
||||
|| (isPlayer() && !(isInVehicle && (distance > 1500))) //
|
||||
|| (this instanceof L2RiftInvaderInstance))
|
||||
{
|
||||
@@ -4423,7 +4421,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
}
|
||||
else if (isSummon())
|
||||
{
|
||||
return; // preventation when summon get out of world coords, player will not loose him, unsummon handled from pcinstance
|
||||
return; // prevention when summon get out of world coords, player will not loose him, unsummon handled from pcinstance
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -4431,7 +4429,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
}
|
||||
return;
|
||||
}
|
||||
final Location destiny = GeoData.getInstance().moveCheck(curX, curY, curZ, x, y, z, getInstanceId());
|
||||
final Location destiny = GeoEngine.getInstance().canMoveToTargetLoc(curX, curY, curZ, x, y, z, getInstanceId());
|
||||
// location different if destination wasn't reached (or just z coord is different)
|
||||
x = destiny.getX();
|
||||
y = destiny.getY();
|
||||
@@ -4444,13 +4442,13 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
// Pathfinding checks. Only when geodata setting is 2, the LoS check gives shorter result
|
||||
// than the original movement was and the LoS gives a shorter distance than 2000
|
||||
// This way of detecting need for pathfinding could be changed.
|
||||
if ((Config.PATHFINDING > 0) && ((originalDistance - distance) > 30) && (distance < 2000))
|
||||
if (Config.PATHFINDING && ((originalDistance - distance) > 30) && (distance < 2000))
|
||||
{
|
||||
// Path calculation
|
||||
// Overrides previous movement check
|
||||
if ((isPlayable() && !isInVehicle) || isMinion() || isInCombat())
|
||||
{
|
||||
m.geoPath = PathFinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId(), isPlayable());
|
||||
m.geoPath = GeoEngine.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId(), isPlayable());
|
||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||
{
|
||||
// Even though there's no path found (remember geonodes aren't perfect),
|
||||
@@ -4511,7 +4509,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
}
|
||||
}
|
||||
// If no distance to go through, the movement is canceled
|
||||
if ((distance < 1) && ((Config.PATHFINDING > 0) || isPlayable() || (this instanceof L2RiftInvaderInstance) || isAfraid()))
|
||||
if ((distance < 1) && (Config.PATHFINDING || isPlayable() || (this instanceof L2RiftInvaderInstance) || isAfraid()))
|
||||
{
|
||||
if (isSummon())
|
||||
{
|
||||
@@ -5064,7 +5062,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
return;
|
||||
}
|
||||
// GeoData Los Check or dz > 1000
|
||||
if (!GeoData.getInstance().canSeeTarget(player, this))
|
||||
if (!GeoEngine.getInstance().canSeeTarget(player, this))
|
||||
{
|
||||
player.sendPacket(SystemMessageId.CANNOT_SEE_TARGET);
|
||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
@@ -5400,7 +5398,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
|
||||
// Healing party members should ignore LOS.
|
||||
if (((skill.getTargetType() != L2TargetType.PARTY) || !skill.hasEffectType(L2EffectType.HEAL)) //
|
||||
&& (mut.getSkillTime() > 550) && !GeoData.getInstance().canSeeTarget(this, target))
|
||||
&& (mut.getSkillTime() > 550) && !GeoEngine.getInstance().canSeeTarget(this, target))
|
||||
{
|
||||
skipLOS++;
|
||||
continue;
|
||||
|
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.enums.InstanceType;
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
import com.l2jmobius.gameserver.enums.ShotType;
|
||||
import com.l2jmobius.gameserver.enums.Team;
|
||||
import com.l2jmobius.gameserver.geodata.pathfinding.PathFinding;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.handler.IItemHandler;
|
||||
import com.l2jmobius.gameserver.handler.ItemHandler;
|
||||
import com.l2jmobius.gameserver.instancemanager.TerritoryWarManager;
|
||||
@@ -660,7 +660,7 @@ public abstract class L2Summon extends L2Playable
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((this != target) && skill.isPhysical() && (Config.PATHFINDING > 0) && (PathFinding.getInstance().findPath(getX(), getY(), getZ(), target.getX(), target.getY(), target.getZ(), getInstanceId(), true) == null))
|
||||
if ((this != target) && skill.isPhysical() && Config.PATHFINDING && (GeoEngine.getInstance().findPath(getX(), getY(), getZ(), target.getX(), target.getY(), target.getZ(), getInstanceId(), true) == null))
|
||||
{
|
||||
sendPacket(SystemMessageId.CANNOT_SEE_TARGET);
|
||||
return false;
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package com.l2jmobius.gameserver.model.actor;
|
||||
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
@@ -65,7 +65,7 @@ public abstract class L2Tower extends L2Npc
|
||||
// Set the target of the L2PcInstance player
|
||||
player.setTarget(this);
|
||||
}
|
||||
else if (interact && isAutoAttackable(player) && (Math.abs(player.getZ() - getZ()) < 100) && GeoData.getInstance().canSeeTarget(player, this))
|
||||
else if (interact && isAutoAttackable(player) && (Math.abs(player.getZ() - getZ()) < 100) && GeoEngine.getInstance().canSeeTarget(player, this))
|
||||
{
|
||||
// Notify the L2PcInstance AI with AI_INTENTION_INTERACT
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);
|
||||
|
@@ -90,7 +90,7 @@ import com.l2jmobius.gameserver.enums.Sex;
|
||||
import com.l2jmobius.gameserver.enums.ShortcutType;
|
||||
import com.l2jmobius.gameserver.enums.ShotType;
|
||||
import com.l2jmobius.gameserver.enums.Team;
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.handler.IItemHandler;
|
||||
import com.l2jmobius.gameserver.handler.ItemHandler;
|
||||
import com.l2jmobius.gameserver.idfactory.IdFactory;
|
||||
@@ -106,7 +106,6 @@ import com.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.HandysBlockCheckerManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.PremiumManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.SiegeManager;
|
||||
@@ -355,9 +354,6 @@ public final class L2PcInstance extends L2Playable
|
||||
private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,face=?,hairStyle=?,hairColor=?,sex=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,fame=?,pvpkills=?,pkkills=?,clanid=?,race=?,classid=?,deletetime=?,title=?,title_color=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,newbie=?,nobless=?,power_grade=?,subpledge=?,lvl_joined_academy=?,apprentice=?,sponsor=?,clan_join_expiry_time=?,clan_create_expiry_time=?,char_name=?,death_penalty_level=?,bookmarkslot=?,vitality_points=?,language=? WHERE charId=?";
|
||||
private static final String RESTORE_CHARACTER = "SELECT * FROM characters WHERE charId=?";
|
||||
|
||||
// Character Premium System String Definitions:
|
||||
private static final String RESTORE_PREMIUMSERVICE = "SELECT premium_service,enddate FROM account_premium WHERE account_name=?";
|
||||
|
||||
// Character Teleport Bookmark:
|
||||
private static final String INSERT_TP_BOOKMARK = "INSERT INTO character_tpbookmark (charId,Id,x,y,z,icon,tag,name) values (?,?,?,?,?,?,?,?)";
|
||||
private static final String UPDATE_TP_BOOKMARK = "UPDATE character_tpbookmark SET icon=?,tag=?,name=? where charId=? AND Id=?";
|
||||
@@ -6727,7 +6723,6 @@ public final class L2PcInstance extends L2Playable
|
||||
|
||||
player = new L2PcInstance(objectId, template, rset.getString("account_name"), app);
|
||||
player.setName(rset.getString("char_name"));
|
||||
restorePremiumSystemData(player, rset.getString("account_name"));
|
||||
player._lastAccess = rset.getLong("lastAccess");
|
||||
|
||||
player.getStat().setExp(rset.getLong("exp"));
|
||||
@@ -8734,14 +8729,14 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (sklTargetType == L2TargetType.GROUND)
|
||||
{
|
||||
if (!GeoData.getInstance().canSeeTarget(this, worldPosition))
|
||||
if (!GeoEngine.getInstance().canSeeTarget(this, worldPosition))
|
||||
{
|
||||
sendPacket(SystemMessageId.CANNOT_SEE_TARGET);
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (!GeoData.getInstance().canSeeTarget(this, target))
|
||||
else if (!GeoEngine.getInstance().canSeeTarget(this, target))
|
||||
{
|
||||
sendPacket(SystemMessageId.CANNOT_SEE_TARGET);
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
@@ -8749,7 +8744,7 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
}
|
||||
|
||||
if ((skill.getFlyType() == FlyType.CHARGE) && !GeoData.getInstance().canMove(this, target))
|
||||
if ((skill.getFlyType() == FlyType.CHARGE) && !GeoEngine.getInstance().canMoveToTarget(getX(), getY(), getZ(), target.getX(), target.getY(), target.getZ(), getInstanceId()))
|
||||
{
|
||||
sendPacket(SystemMessageId.THE_TARGET_IS_LOCATED_WHERE_YOU_CANNOT_CHARGE);
|
||||
return false;
|
||||
@@ -13404,7 +13399,7 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
|
||||
// If there is no geodata loaded for the place we are client Z correction might cause falling damage.
|
||||
if (!GeoData.getInstance().hasGeo(getX(), getY()))
|
||||
if (!GeoEngine.getInstance().hasGeo(getX(), getY()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -13952,48 +13947,6 @@ public final class L2PcInstance extends L2Playable
|
||||
return Config.PREMIUM_SYSTEM_ENABLED && _premiumStatus;
|
||||
}
|
||||
|
||||
private static void restorePremiumSystemData(L2PcInstance player, String account)
|
||||
{
|
||||
boolean success = false;
|
||||
try (Connection con = DatabaseFactory.getInstance().getConnection())
|
||||
{
|
||||
final PreparedStatement ps = con.prepareStatement(RESTORE_PREMIUMSERVICE);
|
||||
ps.setString(1, account);
|
||||
final ResultSet rs = ps.executeQuery();
|
||||
while (rs.next())
|
||||
{
|
||||
success = true;
|
||||
if (Config.PREMIUM_SYSTEM_ENABLED)
|
||||
{
|
||||
if (rs.getLong("enddate") <= System.currentTimeMillis())
|
||||
{
|
||||
PremiumManager.getInstance().removePremiumStatus(account);
|
||||
player.setPremiumStatus(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.setPremiumStatus(rs.getBoolean("premium_service"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
player.setPremiumStatus(false);
|
||||
}
|
||||
}
|
||||
ps.close();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.warning("Premium System: Could not restore premium system data for " + account + "." + e);
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (!success)
|
||||
{
|
||||
PremiumManager.getInstance().removePremiumStatus(player.getAccountName());
|
||||
player.setPremiumStatus(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void setLastPetitionGmName(String gmName)
|
||||
{
|
||||
_lastPetitionGmName = gmName;
|
||||
|
@@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.datatables.ItemTable;
|
||||
import com.l2jmobius.gameserver.enums.InstanceType;
|
||||
import com.l2jmobius.gameserver.enums.ItemLocation;
|
||||
import com.l2jmobius.gameserver.enums.ShotType;
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.idfactory.IdFactory;
|
||||
import com.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.MercTicketManager;
|
||||
@@ -1540,7 +1540,7 @@ public final class L2ItemInstance extends L2Object
|
||||
|
||||
if (_dropper != null)
|
||||
{
|
||||
final Location dropDest = GeoData.getInstance().moveCheck(_dropper.getX(), _dropper.getY(), _dropper.getZ(), _x, _y, _z, _dropper.getInstanceId());
|
||||
final Location dropDest = GeoEngine.getInstance().canMoveToTargetLoc(_dropper.getX(), _dropper.getY(), _dropper.getZ(), _x, _y, _z, _dropper.getInstanceId());
|
||||
_x = dropDest.getX();
|
||||
_y = dropDest.getY();
|
||||
_z = dropDest.getZ();
|
||||
|
@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.data.xml.impl.SkillTreesData;
|
||||
import com.l2jmobius.gameserver.datatables.SkillData;
|
||||
import com.l2jmobius.gameserver.enums.MountType;
|
||||
import com.l2jmobius.gameserver.enums.ShotType;
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.handler.ITargetTypeHandler;
|
||||
import com.l2jmobius.gameserver.handler.TargetHandler;
|
||||
import com.l2jmobius.gameserver.instancemanager.HandysBlockCheckerManager;
|
||||
@@ -1221,7 +1221,7 @@ public final class Skill implements IIdentifiable
|
||||
}
|
||||
}
|
||||
|
||||
if (!GeoData.getInstance().canSeeTarget(caster, target))
|
||||
if (!GeoEngine.getInstance().canSeeTarget(caster, target))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@@ -24,7 +24,7 @@ import java.util.logging.Logger;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.datatables.SkillData;
|
||||
import com.l2jmobius.gameserver.enums.ShotType;
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.model.L2Object;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
@@ -178,7 +178,7 @@ public class SkillChannelizer implements Runnable
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else if (!GeoData.getInstance().canSeeTarget(_channelizer, character))
|
||||
else if (!GeoEngine.getInstance().canSeeTarget(_channelizer, character))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ package com.l2jmobius.gameserver.model.zone.form;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jmobius.gameserver.model.zone.L2ZoneForm;
|
||||
import com.l2jmobius.util.Rnd;
|
||||
@@ -134,7 +134,7 @@ public class ZoneCuboid extends L2ZoneForm
|
||||
{
|
||||
x,
|
||||
y,
|
||||
GeoData.getInstance().getHeight(x, y, _z1)
|
||||
GeoEngine.getInstance().getHeight(x, y, _z1)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.model.zone.form;
|
||||
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jmobius.gameserver.model.zone.L2ZoneForm;
|
||||
import com.l2jmobius.util.Rnd;
|
||||
@@ -101,7 +101,7 @@ public class ZoneCylinder extends L2ZoneForm
|
||||
{
|
||||
(int) x,
|
||||
(int) y,
|
||||
GeoData.getInstance().getHeight((int) x, (int) y, _z1)
|
||||
GeoEngine.getInstance().getHeight((int) x, (int) y, _z1)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ package com.l2jmobius.gameserver.model.zone.form;
|
||||
|
||||
import java.awt.Polygon;
|
||||
|
||||
import com.l2jmobius.gameserver.geodata.GeoData;
|
||||
import com.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jmobius.gameserver.model.zone.L2ZoneForm;
|
||||
import com.l2jmobius.util.Rnd;
|
||||
@@ -131,7 +131,7 @@ public class ZoneNPoly extends L2ZoneForm
|
||||
{
|
||||
x,
|
||||
y,
|
||||
GeoData.getInstance().getHeight(x, y, _z1)
|
||||
GeoEngine.getInstance().getHeight(x, y, _z1)
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user