Java 类org.newdawn.slick.util.pathfinding.PathFindingContext 实例源码

项目:trashjam2017    文件:NavMeshTest.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    if ((tx < 0) || (ty < 0) || (tx >= 50) || (ty >= 50)) {
        return false;
    }

    return map[tx+(ty*50)] != 0;
}
项目:Progetto-C    文件:NavMeshTest.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    if ((tx < 0) || (ty < 0) || (tx >= 50) || (ty >= 50)) {
        return false;
    }

    return map[tx+(ty*50)] != 0;
}
项目:BaseClient    文件:NavMeshTest.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    if ((tx < 0) || (ty < 0) || (tx >= 50) || (ty >= 50)) {
        return false;
    }

    return map[tx+(ty*50)] != 0;
}
项目:GPVM    文件:NavMeshTest.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    if ((tx < 0) || (ty < 0) || (tx >= 50) || (ty >= 50)) {
        return false;
    }

    return map[tx+(ty*50)] != 0;
}
项目:SpaceStationAlpha    文件:NavMeshTest.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    if ((tx < 0) || (ty < 0) || (tx >= 50) || (ty >= 50)) {
        return false;
    }

    return map[tx+(ty*50)] != 0;
}
项目:cretion    文件:NavMeshTest.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    if ((tx < 0) || (ty < 0) || (tx >= 50) || (ty >= 50)) {
        return false;
    }

    return map[tx+(ty*50)] != 0;
}
项目:ESCP    文件:RoomController.java   
/**
 * {@inheritDoc}
 */
@Override
public boolean blocked(PathFindingContext context, int tx, int ty) {
    // TODO How to use PathFindingContext?
    try {
        int tileID = map.getTileId(tx, ty, blockedLayerID);
        String property = map.getTileProperty(tileID, "blocked", "false");
        return !property.equals("false");
    } catch (ArrayIndexOutOfBoundsException e) {
        return true;
    }
}
项目:UbikSim    文件:PathfindingMap.java   
/**
 * Considered if its wall of if there are a person when its in perception range
 * @param ctx
 * @param x
 * @param y
 * @return 
 */
@Override
public boolean blocked(PathFindingContext ctx, int x, int y) {
   if(PositionTools.isWall(p, x, y)) return true;
   if(PositionTools.getDistance(p.getPosition().x, p.getPosition().y, x, y)<percetionRange){
       return PositionTools.getPerson(p, x, y)!=null;
    }
   return false;
}
项目:UbikSim    文件:BooleanPathfindingMap.java   
/**
 * Considered if its wall of if there is  a person in its in perception range (so calling it when finding a mobile object, generates a path considering this)
 * @param ctx
 * @param x
 * @param y
 * @return 
 */
@Override
public boolean blocked(PathFindingContext ctx, int x, int y) {
     if(x>=WIDTH ||x<0 ||y<0 || y>= HEIGHT) return true;
   if(bmap[x][y]) return true;
   if(PositionTools.getDistance(p.getPosition().x, p.getPosition().y, x, y)<percetionRange){
       if(PositionTools.getPerson(p, x, y)!=null) return true;
    }
   return false;
}
项目:slick2d-maven    文件:NavMeshTest.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    if ((tx < 0) || (ty < 0) || (tx >= 50) || (ty >= 50)) {
        return false;
    }

    return map[tx+(ty*50)] != 0;
}
项目:trashjam2017    文件:NavMeshTest.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 1;
}
项目:Progetto-C    文件:NavMeshTest.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 1;
}
项目:BaseClient    文件:NavMeshTest.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 1;
}
项目:CryptoRl2    文件:GameWorld.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    return walls[tx][ty];
}
项目:CryptoRl2    文件:GameWorld.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 0;
}
项目:CryptoRl2    文件:GameMap.java   
public boolean blocked(PathFindingContext context, int tx, int ty) {
    return !isFree(tx, ty);
}
项目:CryptoRl2    文件:GameMap.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 0;
}
项目:awesome-game-store    文件:Map.java   
@Override
public boolean blocked(PathFindingContext context, int tx, int ty) {
    return blocked[tx][ty];
}
项目:awesome-game-store    文件:Map.java   
@Override
public float getCost(PathFindingContext context, int tx, int ty) {
    return 0;
}
项目:GPVM    文件:NavMeshTest.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 1;
}
项目:SpaceStationAlpha    文件:NavMeshTest.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 1;
}
项目:cretion    文件:NavMeshTest.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 1;
}
项目:JavaRA    文件:World.java   
@Override
   public boolean blocked(PathFindingContext arg0, int x, int y) {
return !((MobileEntity) arg0.getMover()).canEnterCell(new Pos(x, y));
   }
项目:JavaRA    文件:World.java   
@Override
   public float getCost(PathFindingContext ctx, int x, int y) {
return 1;
   }
项目:maze-generation-algorithms    文件:Maze.java   
@Override
public boolean blocked(PathFindingContext context, int x, int y) {
    return blocked[x][y];
}
项目:maze-generation-algorithms    文件:Maze.java   
@Override
public float getCost(PathFindingContext arg0, int arg1, int arg2) {
    return 0;
}
项目:ESCP    文件:RoomController.java   
/**
 * {@inheritDoc}
 */
@Override
public float getCost(PathFindingContext context, int tx, int ty) {
    return 1;
}
项目:UbikSim    文件:PathfindingMap.java   
@Override
public float getCost(PathFindingContext ctx, int x, int y) {
    return 1.0f;
}
项目:UbikSim    文件:PathfinderDemo.java   
@Override
//0 is blocked
public boolean blocked(PathFindingContext ctx, int x, int y) {
    return MAP[y][x] != 0;
}
项目:UbikSim    文件:PathfinderDemo.java   
@Override
public float getCost(PathFindingContext ctx, int x, int y) {
    return 1.0f;
}
项目:UbikSim    文件:BooleanPathfindingMap.java   
@Override
public float getCost(PathFindingContext ctx, int x, int y) {
    return 1.0f;
}
项目:reddit-game-jam-5    文件:Map.java   
@Override
public boolean blocked(PathFindingContext arg0, int x, int y) {
    return blocked[x][y];
}
项目:reddit-game-jam-5    文件:Map.java   
@Override
public float getCost(PathFindingContext arg0, int arg1, int arg2) {
    return 0;
}
项目:slick2d-maven    文件:NavMeshTest.java   
public float getCost(PathFindingContext context, int tx, int ty) {
    return 1;
}