Package l2p.gameserver.model.instances.L2NpcInstance

Examples of l2p.gameserver.model.instances.L2NpcInstance.AggroInfo


    if(actor == null)
    {
      return null;
    }
    GArray<AggroInfo> aggroList = actor.getAggroList();
    AggroInfo mosthated1 = null;
    for(AggroInfo ai : aggroList)
    {
      if(mosthated1 == null || mosthated1.attacker == null)
      {
        mosthated1 = ai;
      }
      else if(ai.attacker != null && actor.getDistance(ai.attacker) < actor.getDistance(mosthated1.attacker))
      {
        mosthated1 = ai;
      }
    }
    AggroInfo mosthated2 = null;
    for(AggroInfo ai : aggroList)
    {
      if(mosthated2 == null || mosthated2.attacker == null)
      {
        mosthated2 = ai;
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.instances.L2NpcInstance.AggroInfo

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.