Examples of BoatWayEvent


Examples of lineage2.gameserver.model.entity.events.impl.BoatWayEvent

  /**
   * Method startDepartTask.
   */
  public void startDepartTask()
  {
    BoatWayEvent arrivalWay = new BoatWayEvent(this);
    BoatWayEvent departWay = new BoatWayEvent(this);
    for (BoatPoint p : _platform.getArrivalPoints())
    {
      arrivalWay.addObject(BoatWayEvent.BOAT_POINTS, p);
    }
    for (BoatPoint p : _platform.getDepartPoints())
    {
      departWay.addObject(BoatWayEvent.BOAT_POINTS, p);
    }
    arrivalWay.addOnTimeAction(0, new StartStopAction(StartStopAction.EVENT, true));
    departWay.addOnTimeAction(300, new StartStopAction(StartStopAction.EVENT, true));
    setWay(0, arrivalWay);
    setWay(1, departWay);
    arrivalWay.reCalcNextTime(false);
  }
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.