Package npc.model.residences

Examples of npc.model.residences.SiegeGuardInstance


   * @param aggro int
   */
  @Override
  protected void onEvtAggression(Creature target, int aggro)
  {
    final SiegeGuardInstance actor = getActor();
    if (actor.isDead())
    {
      return;
    }
    if ((target == null) || !actor.isAutoAttackable(target))
    {
      return;
    }
    super.onEvtAggression(target, aggro);
  }
View Full Code Here


   * @return Creature
   */
  @Override
  protected Creature prepareTarget()
  {
    final SiegeGuardInstance actor = getActor();
    if (actor.isDead())
    {
      return null;
    }
    final List<Creature> hateList = actor.getAggroList().getHateList();
    Creature hated = null;
    for (Creature cha : hateList)
    {
      if (!checkTarget(cha, MAX_PURSUE_RANGE))
      {
        actor.getAggroList().remove(cha, true);
        continue;
      }
      hated = cha;
      break;
    }
View Full Code Here

TOP

Related Classes of npc.model.residences.SiegeGuardInstance

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.