Package lineage2.gameserver.templates.jump

Examples of lineage2.gameserver.templates.jump.JumpWay.addPoint()


        for (Iterator<?> pointIterator = wayElement.elementIterator("point"); pointIterator.hasNext();)
        {
          Element pointElement = (Element) pointIterator.next();
          Location pointLoc = Location.parse(pointElement);
          int nextWayId = Integer.parseInt(pointElement.attributeValue("next_way_id"));
          jumpWay.addPoint(new JumpPoint(pointLoc, nextWayId));
        }
        jumpTrack.addWay(jumpWay);
      }
      getHolder().addTrack(jumpTrack);
    }
View Full Code Here


            Location loc = Location.parse(nextElement);
            NpcString phrase = nextElement.attributeValue("phrase_id") == null ? null : NpcString.valueOf(Integer.parseInt(nextElement.attributeValue("phrase_id").toUpperCase()));
            int socialActionId = nextElement.attributeValue("social_action_id") == null ? -1 : Integer.parseInt(nextElement.attributeValue("social_action_id"));
            int delay = nextElement.attributeValue("delay") == null ? 0 : Integer.parseInt(nextElement.attributeValue("delay"));
            boolean running = nextElement.attributeValue("running") == null ? false : Boolean.parseBoolean(nextElement.attributeValue("running"));
            walkerRoute.addPoint(new WalkerRoutePoint(loc, phrase, socialActionId, delay, running));
          }
          template.addWalkerRoute(walkerRoute);
        }
        else if (nodeName.equalsIgnoreCase("random_actions"))
        {
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.