Use ILocational parameter for onIntentionMoveTo method.
This commit is contained in:
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -289,7 +289,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) arg0);
|
onIntentionMoveTo((ILocational) arg0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -487,7 +487,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -342,7 +342,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if ((getIntention() == AI_INTENTION_REST) || _actor.isAllSkillsDisabled() || _actor.isCastingNow())
|
if ((getIntention() == AI_INTENTION_REST) || _actor.isAllSkillsDisabled() || _actor.isCastingNow())
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -61,7 +62,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,12 +24,12 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
import org.l2jmobius.gameserver.model.entity.Duel;
|
import org.l2jmobius.gameserver.model.entity.Duel;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
@@ -182,7 +182,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -196,7 +196,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
}
|
}
|
||||||
case AI_INTENTION_MOVE_TO:
|
case AI_INTENTION_MOVE_TO:
|
||||||
{
|
{
|
||||||
onIntentionMoveTo((Location) args[0]);
|
onIntentionMoveTo((ILocational) args[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AI_INTENTION_FOLLOW:
|
case AI_INTENTION_FOLLOW:
|
||||||
@@ -376,7 +376,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
|
|
||||||
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
protected abstract void onIntentionCast(Skill skill, WorldObject target, ItemInstance item, boolean forceUse, boolean dontMove);
|
||||||
|
|
||||||
protected abstract void onIntentionMoveTo(Location destination);
|
protected abstract void onIntentionMoveTo(ILocational destination);
|
||||||
|
|
||||||
protected abstract void onIntentionFollow(Creature target);
|
protected abstract void onIntentionFollow(Creature target);
|
||||||
|
|
||||||
|
@@ -347,7 +347,7 @@ public class CreatureAI extends AbstractAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DefenderInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.DoorInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ public class DoorAI extends CreatureAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location destination)
|
protected void onIntentionMoveTo(ILocational destination)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -24,11 +24,11 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_MOVE_TO;
|
|||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_PICK_UP;
|
||||||
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_REST;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
|
||||||
import org.l2jmobius.gameserver.model.WorldObject;
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.StaticObjectInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import org.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ public class PlayerAI extends PlayableAI
|
|||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onIntentionMoveTo(Location loc)
|
protected void onIntentionMoveTo(ILocational loc)
|
||||||
{
|
{
|
||||||
if (getIntention() == AI_INTENTION_REST)
|
if (getIntention() == AI_INTENTION_REST)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user