Examples of CollisionDetection


Examples of games.stendhal.common.CollisionDetection

    playersAndFriends = new LinkedList<RPEntity>();

    movementListeners = new LinkedList<MovementListener>();
    zoneListeners = new LinkedList<ZoneEnterExitListener>();

    collisionMap = new CollisionDetection();
    protectionMap = new CollisionDetection();
  }
View Full Code Here

Examples of games.stendhal.common.CollisionDetection

           */
          screenController.setWorldSize(gameLayers.getWidth(), gameLayers.getHeight());

          // [Re]create the map.

          final CollisionDetection cd = gameLayers.getCollisionDetection();
          final CollisionDetection pd = gameLayers.getProtectionDetection();

          if (cd != null) {
            minimap.update(cd, pd, gameLayers.getArea());
          }
          gameLayers.resetChangedArea();
View Full Code Here

Examples of games.stendhal.common.CollisionDetection

      if (collisions.containsKey(area)) {
        // Repeated layers should be ignored.
        return;
      }

      final CollisionDetection collisionTemp = new CollisionDetection();
      collisionTemp.setCollisionData(LayerDefinition.decode(in));

      collisions.put(area, collisionTemp);
    } else if (layer.equals("protection")) {
      /*
       * Add protection
       */
      if (protections.containsKey(area)) {
        // Repeated layers should be ignored.
        return;
      }

      final CollisionDetection protectionTemp = new CollisionDetection();
      protectionTemp.setCollisionData(LayerDefinition.decode(in));

      protections.put(area, protectionTemp);
    } else if (layer.equals("tilesets")) {
      /*
       * Add tileset
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.