Package net.sf.l2j.util

Examples of net.sf.l2j.util.Point3D


    List<CursedWeaponInfo> list = new FastList<CursedWeaponInfo>();
    for (CursedWeapon cw : CursedWeaponsManager.getInstance().getCursedWeapons())
    {
      if (!cw.isActive()) continue;

      Point3D pos = cw.getWorldPosition();

      if (pos != null)
        list.add(new CursedWeaponInfo(pos, cw.getItemId(), cw.isActivated() ? 1 : 0));
    }
View Full Code Here


    public final int getZ() { return getWorldPosition().getZ(); }
    public final void setZ(int value) { getWorldPosition().setZ(value); }

    public final Point3D getWorldPosition()
    {
        if (_worldPosition == null) _worldPosition = new Point3D(0, 0, 0);
        return _worldPosition;
    }
View Full Code Here

    }
    if(player.isInBoat())
    {
      if(player.getBoat().getObjectId() == _boatId)
      {
        player.setInBoatPosition(new Point3D(_x,_y,_z));
        player.getPosition().setHeading(_heading);
        StopMoveInVehicle msg = new StopMoveInVehicle(player,_boatId);
        player.broadcastPacket(msg);
      }
    }
View Full Code Here

        L2BoatInstance boat = BoatManager.getInstance().GetBoat(_id);
        if (boat == null) return;

        GetOnVehicle Gon = new GetOnVehicle(activeChar,boat,_x,_y,_z);
        activeChar.setInBoatPosition(new Point3D(_x,_y,_z));
        activeChar.getPosition().setXYZ(boat.getPosition().getX(),boat.getPosition().getY(),boat.getPosition().getZ());
        activeChar.broadcastPacket(Gon);
        activeChar.revalidateZone(true);

View Full Code Here

        _remainingTime = MAX_DURATION;
    }

    public Point3D getHome()
    {
      return new Point3D(_homeX, _homeY, _homeZ);
    }
View Full Code Here

TOP

Related Classes of net.sf.l2j.util.Point3D

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.