コード例 #1
0
ファイル: Missile.java プロジェクト: WinjayYu/TankWar
 public boolean hitWall(Wall w) {
   if (this.isLive() && this.getRect().intersects(w.getRect())) {
     this.live = false;
     return true;
   }
   return false;
 }