Package games.stendhal.server.entity

Examples of games.stendhal.server.entity.Entity.nextTo()


    Point targetPoint = new Point(goalNode.getX(), goalNode.getY());
    resistanceMap = new ResistanceMap(zone.getWidth(), zone.getHeight());
    for (final RPObject obj : zone) {
      final Entity otherEntity = (Entity) obj;
      if (!entity.getID().equals(otherEntity.getID())
          && (otherEntity.stopped() || otherEntity.nextTo(
              startNode.getX(), startNode.getY(), 0.25))) {
        final Rectangle2D area = otherEntity.getArea();
        // Hack: Allow players to move onto portals as destination
        if ((entity instanceof Player) && (otherEntity instanceof Portal) && area.contains(targetPoint)) {
          continue;
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.