Examples of simpleCollides()


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

    final int y = getY();
    final int nx = x + direction.getdx();
    final int ny = y + direction.getdy();

    final StendhalRPZone zone = getZone();
    if (zone.simpleCollides(this, nx, ny, this.getWidth(), this.getHeight())) {
      handleSimpleCollision(nx, ny);
      return;
    }
    final Portal p = zone.getPortal(nx, ny);
    if (p != null) {
View Full Code Here

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

      }
     
    } else {
      logger.debug("entity: " + entity + " zone: " + zone);
      // check if the destination is free
      if ((zone != null) && zone.simpleCollides(entity, x, y, entity.getWidth(), entity.getHeight())) {
        logger.warn("object " + entity + " collides with " + x + "x"
            + y);
        player.sendPrivateText("There is no space on there.");
        return 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.