Пример #1
0
 public boolean checkRightCollision(Rectangle collisionArea) {
   return HorizontalDirection.LEFT.equals(horizontalDirection)
       && CollisionDetector.checkRightCollision(area, collisionArea);
 }
Пример #2
0
 public boolean checkBottomCollision(Rectangle collisionArea) {
   return VerticalDirection.UP.equals(verticalDirection)
       && CollisionDetector.checkBottomCollision(area, collisionArea);
 }