Package pelletQuest.map

Examples of pelletQuest.map.GameMap


      state = 1;/*hurt*/
    }
  }
 
  public boolean teleport (String transition, int transitionTime, Vector2f targetPos, String targetName, Vector2f finalDirection) {
    GameMap originalMap = map;
   
    if (super.teleport(transition, transitionTime, targetPos, targetName, finalDirection)) {
      this.transition = transition;
      this.maxTransitionTimer = this.transitionTimer = transitionTime;
     
View Full Code Here


  public boolean canLeaveMap () {
    return canLeaveMap;
  }
 
  public boolean teleport (String transition, int transitionTime, Vector2f targetPos, String targetName, Vector2f finalDirection) {
    GameMap target = null;
    try {
      target = World.getMap(targetName);
    } catch (Exception e){
      Log.error(e);
      return false;
    }
   
    if (!canLeaveZone && !target.getZone().equals(map.getZone())) {
      return false;
    }

    ArrayList<Entity> collisions = Entity.getCollisionsAt(new Rectangle(targetPos.x*16, targetPos.y*16, box.getWidth(), box.getHeight()), target);
    Entity solidCollide = null;
View Full Code Here

  public boolean tryMove (Vector2f direction) {
    if (!canMove(map, box, getPassableTerrains(), direction)) {
      return false;
    }
   
    GameMap loggedMap = map;
    Vector2f loggedPos = new Vector2f(box.getX(), box.getY());
   
    ArrayList<Entity> ent = getCollisions(direction);
    for (Entity e : ent) {
      e.getBumped(this);
View Full Code Here

TOP

Related Classes of pelletQuest.map.GameMap

Copyright © 2018 www.massapicom. 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.