From 2d38697a25486deec7ab87b5428db2a4174b52e3 Mon Sep 17 00:00:00 2001 From: alestiago Date: Wed, 30 Mar 2022 20:48:33 +0100 Subject: [PATCH] refactor: renamed controller --- lib/game/components/controlled_ball.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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