Package net.sf.l2j.gameserver.ai

Examples of net.sf.l2j.gameserver.ai.L2CharacterAI


            getActiveChar().getAggroList().remove(object);
        // Set the L2Attackable Intention to AI_INTENTION_IDLE
        Collection<L2PcInstance> known = getKnownPlayers().values();

        //FIXME: This is a temporary solution
        L2CharacterAI ai = getActiveChar().getAI();
        if (ai != null && (known == null || known.isEmpty()))
        {
            ai.setIntention(CtrlIntention.AI_INTENTION_IDLE);
        }

        return true;
    }
View Full Code Here


        if (getActiveChar().noTarget())
        {
            //removeAllKnownObjects();

            // Set the L2GuardInstance to AI_INTENTION_IDLE
            L2CharacterAI ai = getActiveChar().getAI();
            if (ai != null) ai.setIntention(CtrlIntention.AI_INTENTION_IDLE, null);
        }

        return true;
    }
View Full Code Here

    {
      synchronized (this)
      {
        if (_ai == null)
        {
          _ai = new L2CharacterAI(new AIAccessor());
        }
      }
    }
   
    return _ai;
View Full Code Here

   * Sets the aI.
   * @param newAI the new aI
   */
  public void setAI(L2CharacterAI newAI)
  {
    L2CharacterAI oldAI = getAI();
    if ((oldAI != null) && (oldAI != newAI) && (oldAI instanceof L2AttackableAI))
    {
      ((L2AttackableAI) oldAI).stopAITask();
    }
    _ai = newAI;
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.ai.L2CharacterAI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.