Exemplo n.º 1
0
  public boolean collides_with_box(Box box) {
    if (box == this) return false;

    return get_rectangle().intersects(box.get_rectangle());
  }