Sync between different project ai package classes.

This commit is contained in:
MobiusDevelopment
2021-05-16 20:06:15 +00:00
parent 8177e3f123
commit 5935b77ba7
84 changed files with 1146 additions and 515 deletions

View File

@ -471,6 +471,7 @@ public class CreatureAI extends AbstractAI
// Set the AI pick up target
setTarget(object);
if ((object.getX() == 0) && (object.getY() == 0))
{
// LOGGER.warning("Object in coords 0,0 - using a temporary fix");
@ -1083,7 +1084,7 @@ public class CreatureAI extends AbstractAI
* <br>
* <b><u>Example of use</u>:</b>
* <ul>
* <li>PLayerAI, SummonAI</li>
* <li>PlayerAI, SummonAI</li>
* </ul>
* @param target The targeted WorldObject
* @return True if the target is lost

View File

@ -23,20 +23,28 @@ public enum CtrlIntention
{
/** Do nothing, disconnect AI of NPC if no players around */
AI_INTENTION_IDLE,
/** Alerted state without goal : scan attackable targets, random walk, etc */
AI_INTENTION_ACTIVE,
/** Rest (sit until attacked) */
AI_INTENTION_REST,
/** Attack target (cast combat magic, go to target, combat), may be ignored, if target is locked on another character or a peaceful zone and so on. */
AI_INTENTION_ATTACK,
/** Cast a spell, depending on the spell - may start or stop attacking */
AI_INTENTION_CAST,
/** Just move to another location */
AI_INTENTION_MOVE_TO,
/** Like move, but check target's movement and follow it */
AI_INTENTION_FOLLOW,
/** PickUp and item, (got to item, pickup it, become idle */
AI_INTENTION_PICK_UP,
/** Move to target, then interact */
AI_INTENTION_INTERACT;
}