よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public boolean collides_with_box(Box box) { if (box == this) return false; return get_rectangle().intersects(box.get_rectangle()); }
public boolean collides_with_box(Box box) { if (box == this) return false; return get_rectangle().intersects(box.get_rectangle()); }