Exemplo n.º 1
0
 public void introduceBall(Ball victimBall)
 {
     if(victimBall!=null && scene.getShootedBall()!=null){
         if(victimBall.getColor()==4){					//if the ball hited is the deathBall
             scene.punishment();
         }
         else{										//if not..
             scene.getShootedBall().setPercent(victimBall.getPercent());
             shiftBalls(victimBall);
             addBefore(balls.Find(victimBall),scene.getShootedBall());
         }
     }
 }