Examples of hit()


Examples of com.badlogic.gdx.scenes.scene2d.Actor.hit()

        point.x = x;
        point.y = y;

        group.localToDescendantCoordinates(child, point);

        if (child.hit(point.x, point.y, true) != null)
        {
          found = true;
          hit = child;
        }
        else if (child instanceof Group)
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.Group.hit()

      point.x = x;
      point.y = y;

      root.localToDescendantCoordinates(child, point);

      Actor childHit = root.hit(point.x, point.y, true);

      if (childHit != null && childHit.getClass().isAssignableFrom(targetClass))
      {
        found = true;
        hit = childHit;
View Full Code Here

Examples of diva.canvas.Figure.hit()

            if (f instanceof FigureDecorator) {
                f = ((FigureDecorator) f).getDecoratedFigure();
            }

            if (f.hit(_rubberBand)) {
                freshFigures.add(f);
            } else {
                _holdovers.add(f);
            }
        }
View Full Code Here

Examples of diva.canvas.Figure.hit()

        for (Iterator i = ((HashSet) _holdovers.clone()).iterator(); i
                .hasNext();) {
            Figure f = (Figure) i.next();

            if (f.hit(_rubberBand)) {
                freshFigures.add(f);
                _holdovers.remove(f);
            }
        }
View Full Code Here

Examples of fr.umlv.escapeir.model.element.Bullet.hit()

     */
    if(contact.getFixtureA().getFilterData().categoryBits == Category.PLAYER_BULLET.getValue() && contact.getFixtureB().getFilterData().categoryBits == Category.ENNEMY.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureB().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureA().getBody().getUserData();
      ship.isHit(bullet);
      bullet.hit();
    }
    if(contact.getFixtureB().getFilterData().categoryBits == Category.PLAYER_BULLET.getValue() && contact.getFixtureA().getFilterData().categoryBits == Category.ENNEMY.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureA().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureB().getBody().getUserData();
      ship.isHit(bullet);
View Full Code Here

Examples of fr.umlv.escapeir.model.element.Bullet.hit()

    }
    if(contact.getFixtureB().getFilterData().categoryBits == Category.PLAYER_BULLET.getValue() && contact.getFixtureA().getFilterData().categoryBits == Category.ENNEMY.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureA().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureB().getBody().getUserData();
      ship.isHit(bullet);
      bullet.hit();
    }
   
   
    /**
     * Test if ennemy bullet hit the player
View Full Code Here

Examples of fr.umlv.escapeir.model.element.Bullet.hit()

     */
    if(contact.getFixtureB().getFilterData().categoryBits == Category.ENNEMY_BULLET.getValue() && contact.getFixtureA().getFilterData().categoryBits == Category.PLAYER.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureA().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureB().getBody().getUserData();
      ship.isHit(bullet);
      bullet.hit();
    }
    if(contact.getFixtureB().getFilterData().categoryBits == Category.ENNEMY_BULLET.getValue() && contact.getFixtureA().getFilterData().categoryBits == Category.PLAYER.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureA().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureB().getBody().getUserData();
      ship.isHit(bullet);
View Full Code Here

Examples of fr.umlv.escapeir.model.element.Bullet.hit()

    }
    if(contact.getFixtureB().getFilterData().categoryBits == Category.ENNEMY_BULLET.getValue() && contact.getFixtureA().getFilterData().categoryBits == Category.PLAYER.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureA().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureB().getBody().getUserData();
      ship.isHit(bullet);
      bullet.hit();
    }
   
    /**
     * Test if bullet hit a boss
     */
 
View Full Code Here

Examples of fr.umlv.escapeir.model.element.Bullet.hit()

     */
    if(contact.getFixtureB().getFilterData().categoryBits == Category.PLAYER_BULLET.getValue() && contact.getFixtureA().getFilterData().categoryBits == Category.BOSS.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureA().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureB().getBody().getUserData();
      ship.isHit(bullet);
      bullet.hit();
    }
    if(contact.getFixtureB().getFilterData().categoryBits == Category.PLAYER_BULLET.getValue() && contact.getFixtureA().getFilterData().categoryBits == Category.BOSS.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureA().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureB().getBody().getUserData();
      ship.isHit(bullet);
View Full Code Here

Examples of fr.umlv.escapeir.model.element.Bullet.hit()

    }
    if(contact.getFixtureB().getFilterData().categoryBits == Category.PLAYER_BULLET.getValue() && contact.getFixtureA().getFilterData().categoryBits == Category.BOSS.getValue()){
      AbstractShip ship = (AbstractShip) contact.getFixtureA().getBody().getUserData();
      Bullet bullet = (Bullet) contact.getFixtureB().getBody().getUserData();
      ship.isHit(bullet);
      bullet.hit();
    }
   
    /**
     * Test if ennemy hit the player
     */
 
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.