diff --git a/lib/game/components/controlled_ball.dart b/lib/game/components/controlled_ball.dart index efbd8112..8ebeb264 100644 --- a/lib/game/components/controlled_ball.dart +++ b/lib/game/components/controlled_ball.dart @@ -23,7 +23,7 @@ class ControlledBall extends Ball with Controls { plunger.body.position.x, plunger.body.position.y + Ball.size.y, ); - controller = PlungerBallController(this); + controller = LaunchedBallController(this); } /// {@template bonus_ball} @@ -50,8 +50,7 @@ class BallController extends ComponentController { /// {@macro ball_controller} BallController(Ball ball) : super(ball); - /// Removes the [Ball] from a [PinballGame]; spawning a new [Ball] if - /// any are left. + /// Removes the [Ball] from a [PinballGame]. /// /// {@template ball_controller_lost} /// Triggered by [BottomWallBallContactCallback] when the [Ball] falls into @@ -63,10 +62,10 @@ class BallController extends ComponentController { } /// {@macro ball_controller} -class PlungerBallController extends BallController +class LaunchedBallController extends BallController with HasGameRef { /// {@macro ball_controller} - PlungerBallController(Ball ball) : super(ball); + LaunchedBallController(Ball ball) : super(ball); @override