Examples of collidesOnLine()


Examples of games.stendhal.server.core.engine.StendhalRPZone.collidesOnLine()

      // The attacker is not directly standing next to the defender.
      // Find out if he can attack from the distance.
      if (player.canDoRangeAttack(defender, player.getMaxRangeForArcher())) {

        // Check line of view to see if there is any obstacle.
        if (zone.collidesOnLine(player.getX(), player.getY(),
            defender.getX(), defender.getY())) {
          return false;
        }

        missileUsed = true;
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.