CtrlIntention.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License as published by
  4. * the Free Software Foundation; either version 2, or (at your option)
  5. * any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program; if not, write to the Free Software
  14. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  15. * 02111-1307, USA.
  16. *
  17. * http://www.gnu.org/copyleft/gpl.html
  18. */
  19. package net.sf.l2j.gameserver.ai;
  20. /** Enumaration of generic intentions of an NPC/PC, an intention may require
  21. * several steps to be completed */
  22. public enum CtrlIntention
  23. {
  24. /** Do nothing, disconnect AI of NPC if no players around */
  25. AI_INTENTION_IDLE,
  26. /** Alerted state without goal : scan attackable targets, random walk, etc */
  27. AI_INTENTION_ACTIVE,
  28. /** Rest (sit until attacked) */
  29. AI_INTENTION_REST,
  30. /** Attack target (cast combat magic, go to target, combat), may be ignored,
  31. * if target is locked on another character or a peacefull zone and so on */
  32. AI_INTENTION_ATTACK,
  33. /** Cast a spell, depending on the spell - may start or stop attacking */
  34. AI_INTENTION_CAST,
  35. /** Just move to another location */
  36. AI_INTENTION_MOVE_TO,
  37. /** Like move, but check target's movement and follow it */
  38. AI_INTENTION_FOLLOW,
  39. /** PickUp and item, (got to item, pickup it, become idle */
  40. AI_INTENTION_PICK_UP,
  41. /** Move to target, then interact */
  42. AI_INTENTION_INTERACT,
  43. /** Move to another location in a boat */
  44. AI_INTENTION_MOVE_TO_IN_A_BOAT;
  45. }