Examples of overlaps()


Examples of base.drawable.Drawable.overlaps()

    private Drawable getNextInQueue()
    {
        Drawable   next_dobj;
        while ( drawables_itr.hasNext() ) {
            next_dobj = (Drawable) drawables_itr.next();
            if ( next_dobj.overlaps( timeframe ) )
                return next_dobj;
        }
        return null;
    }
View Full Code Here

Examples of base.drawable.Drawable.overlaps()

    private Drawable getNextInQueue()
    {
        Drawable   next_dobj;
        while ( drawables_itr.hasPrevious() ) {
            next_dobj = (Drawable) drawables_itr.previous();
            if ( next_dobj.overlaps( timeframe ) )
                return next_dobj;
        }
        return null;
    }
View Full Code Here

Examples of base.drawable.Drawable.overlaps()

        Primitive  next_prime;

        next_prime = null;
        while ( drawables_itr.hasNext() ) {
            itr_dobj = (Drawable) drawables_itr.next();
            if ( itr_dobj.overlaps( timeframe ) ) {
                if ( itr_dobj instanceof Composite ) {
                    itr_cmplx  = (Composite) itr_dobj;
                    itr_cmplx.addPrimitivesToSet( set_primes, timeframe );
                    try {
                        next_prime = (Primitive) set_primes.first();
View Full Code Here

Examples of base.drawable.Drawable.overlaps()

        Primitive  next_prime;

        next_prime = null;
        while ( drawables_itr.hasPrevious() ) {
            itr_dobj = (Drawable) drawables_itr.previous();
            if ( itr_dobj.overlaps( timeframe ) ) {
                if ( itr_dobj instanceof Composite ) {
                    itr_cmplx  = (Composite) itr_dobj;
                    itr_cmplx.addPrimitivesToSet( set_primes, timeframe );
                    try {
                        next_prime = (Primitive) set_primes.last();
View Full Code Here

Examples of com.badlogic.gdx.math.Rectangle.overlaps()

    endY = (int) (position.y + HEIGHT);
    // Obtiene la lista de tiles que ocupan la posición del enemigo
    getTilesPosition(startX, startY, endX, endY, tiles);
    rect.x += velocity.x;
    for (Rectangle tile : tiles) {
      if (rect.overlaps(tile)) {
        faceLeft = !faceLeft;
        velocity.x = 0;
        break;
      }
    }
View Full Code Here

Examples of com.badlogic.gdx.math.Rectangle.overlaps()

    endY = (int) (position.y + HEIGHT);
    // Obtiene la lista de tiles que ocupan la posición del item
    getTilesPosition(startX, startY, endX, endY, tiles);
    rect.x += velocity.x;
    for (Rectangle tile : tiles) {
      if (rect.overlaps(tile)) {
        faceLeft = !faceLeft;
        velocity.x = 0;
        break;
      }
    }
View Full Code Here

Examples of com.badlogic.gdx.math.Rectangle.overlaps()

    endY = (int) (position.y + HEIGHT);
    // Obtiene la lista de tiles que ocupan la posición del personaje
    getTilesPosition(startX, startY, endX, endY, tiles);
    playerRect.x += velocity.x;
    for (Rectangle tile : tiles) {
      if (playerRect.overlaps(tile)) {
        velocity.x = 0;
        break;
      }
    }
    playerRect.x = position.x;
View Full Code Here

Examples of com.badlogic.gdx.math.Rectangle.overlaps()

    // Comprueba si el enemigo ha chocado contra algún enemigo
    for (Enemy enemy : levelManager.enemies) {
      Rectangle enemyRect = new Rectangle();
      enemyRect.set(enemy.position.x, enemy.position.y, Enemy.WIDTH, Enemy.HEIGHT);
     
      if (enemyRect.overlaps(playerRect)) {
       
        // Si el jugador está por encima elimina el enemigo
        if (player.position.y > (enemy.position.y + 5)) {
          ResourceManager.getSound("sounds/kick.wav").play();
          levelManager.enemies.removeValue(enemy, true);
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.overlaps()

                                    break;
                                case SpatialOperator.CONTAINS:
                                    geometryMatches = geometry.contains(EPSG4326_geometry);
                                    break;
                                case SpatialOperator.OVERLAPS:
                                    geometryMatches = geometry.overlaps(EPSG4326_geometry);
                                    break;
                                }
                            } catch (ParseException e) {
                                //Transforms the exception into an SQLException.
                                //Very unlikely to happen though...
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.overlaps()

            @Override
            public boolean isSatisfied(Object object) {
                if (object instanceof Geometry) {
                    Geometry geom = (Geometry) object;
                    if (swapped) {
                        return geom.overlaps(value);
                    }
                    return value.overlaps(geom);
                }
                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.