Examples of BoatPoint


Examples of lineage2.gameserver.model.entity.events.objects.BoatPoint

    writeD(_fuel); // current fuel
    writeD(_airports.size());

    for (int i = 0; i < _airports.size(); i++)
    {
      BoatPoint point = _airports.get(i);
      writeD(i - 1); // AirportID
      writeD(point.getFuel()); // need fuel
      writeD(point.x); // Airport x
      writeD(point.y); // Airport y
      writeD(point.z); // Airport z
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.objects.BoatPoint

      getCurrentWay().clearActions();
      getCurrentWay().startEvent();
    }
    else
    {
      BoatPoint point = getDock().getTeleportList().get(id);
      if (getCurrentFuel() < point.getFuel())
      {
        player.sendPacket(SystemMsg.YOUR_SHIP_CANNOT_TELEPORT_BECAUSE_IT_DOES_NOT_HAVE_ENOUGH_FUEL_FOR_THE_TRIP);
        return;
      }
      setCurrentFuel(getCurrentFuel() - point.getFuel());
      getCurrentWay().clearActions();
      getCurrentWay().addObject(BoatWayEvent.BOAT_POINTS, point);
      getCurrentWay().startEvent();
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.objects.BoatPoint

    if (_boat.getRunState() >= points.size())
    {
      _boat.trajetEnded(true);
      return;
    }
    final BoatPoint bp = points.get(_boat.getRunState());
    if (bp.getSpeed1() >= 0)
    {
      _boat.setMoveSpeed(bp.getSpeed1());
    }
    if (bp.getSpeed2() >= 0)
    {
      _boat.setRotationSpeed(bp.getSpeed2());
    }
    if (_boat.getRunState() == 0)
    {
      _boat.broadcastCharInfo();
    }
    _boat.setRunState(_boat.getRunState() + 1);
    if (bp.isTeleport())
    {
      _boat.teleportShip(bp.getX(), bp.getY(), bp.getZ());
    }
    else
    {
      _boat.moveToLocation(bp.getX(), bp.getY(), bp.getZ(), 0, false);
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.objects.BoatPoint

      List<AirshipDock.AirshipPlatform> platformList = new ArrayList<>(2);
      for (Iterator<?> platformIterator = dockElement.elementIterator("platform"); platformIterator.hasNext();)
      {
        Element platformElement = (Element) platformIterator.next();
        SceneMovie movie = SceneMovie.valueOf(platformElement.attributeValue("movie"));
        BoatPoint oustLoc = BoatPoint.parse(platformElement.element("oust"));
        BoatPoint spawnLoc = BoatPoint.parse(platformElement.element("spawn"));
        List<BoatPoint> arrivalList = parsePoints(platformElement.element("arrival"));
        List<BoatPoint> departList = parsePoints(platformElement.element("depart"));
        AirshipDock.AirshipPlatform platform = new AirshipDock.AirshipPlatform(movie, oustLoc, spawnLoc, arrivalList, departList);
        platformList.add(platform);
      }
View Full Code Here
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.