Examples of hitBy()


Examples of zelda.collision.Hittable.hitBy()

      area.intersect(new Area(obj.getRectangle()));

      if((obj instanceof Hittable) && !area.isEmpty() && link != obj)
      {
        Hittable hittable = (Hittable)obj;
        hittable.hitBy(Weapon.SWORD);
      }
    }
  }

  @Override
View Full Code Here

Examples of zelda.collision.Hittable.hitBy()

  public void collision(GObject obj)
  {
    if (obj instanceof Hittable && !(obj instanceof Link) && !(obj instanceof Bush))
    {
      Hittable hittable = (Hittable)obj;
      hittable.hitBy(Weapon.ARROW);
            alive = false;
      arrowHitSomething();
        }

    if(obj instanceof Guard)
View Full Code Here

Examples of zelda.collision.Hittable.hitBy()

                area.intersect(new Area(obj.getRectangle()));

                if((obj instanceof Hittable) && !area.isEmpty() && this != obj)
                {
                    Hittable hittable = (Hittable)obj;
                    hittable.hitBy(Weapon.BOMB);
                }
            }

            game.getScene().removeHitter(bomb);
        }
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.