Package npc.model

Source Code of npc.model.ObeliskInstance

package npc.model;

import l2p.gameserver.geodata.GeoControl;
import l2p.gameserver.geodata.GeoEngine;
import l2p.gameserver.idfactory.IdFactory;
import l2p.gameserver.model.L2RoundTerritory;
import l2p.gameserver.model.L2Territory;
import l2p.gameserver.model.instances.L2MonsterInstance;
import l2p.gameserver.templates.L2NpcTemplate;

import java.util.HashMap;

public class ObeliskInstance extends L2MonsterInstance implements GeoControl
{
  public ObeliskInstance(int objectId, L2NpcTemplate template)
  {
    super(objectId, template);
    int id = IdFactory.getInstance().getNextId();
    L2Territory pos = new L2RoundTerritory(id, -245825, 217075, 230, -12208, -12000);
    setGeoPos(pos);
    GeoEngine.applyControl(this);
  }

  private L2Territory geoPos;
  private HashMap<Long, Byte> geoAround;

  public L2Territory getGeoPos()
  {
    return geoPos;
  }

  public void setGeoPos(L2Territory value)
  {
    geoPos = value;
  }

  public HashMap<Long, Byte> getGeoAround()
  {
    return geoAround;
  }

  public void setGeoAround(HashMap<Long, Byte> value)
  {
    geoAround = value;
  }

  @Override
  public boolean canChampion()
  {
    return false;
  }

  @Override
  public boolean isGeoCloser()
  {
    return false;
  }

  @Override
  public boolean isFearImmune()
  {
    return true;
  }

  @Override
  public boolean isParalyzeImmune()
  {
    return true;
  }

  @Override
  public boolean isLethalImmune()
  {
    return true;
  }
}
TOP

Related Classes of npc.model.ObeliskInstance

TOP
Copyright © 2018 www.massapi.com. 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.