Sync between different project ai package classes.
This commit is contained in:
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user