From 2f4f7897d08331aae48bcb3c3a0b261a9c9cf68d Mon Sep 17 00:00:00 2001 From: Allison Ryan Date: Tue, 19 Apr 2022 10:39:48 -0500 Subject: [PATCH] chore: add Component suffix --- packages/pinball_components/lib/src/components/ball.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pinball_components/lib/src/components/ball.dart b/packages/pinball_components/lib/src/components/ball.dart index 7aaf4b9c..abbfefc8 100644 --- a/packages/pinball_components/lib/src/components/ball.dart +++ b/packages/pinball_components/lib/src/components/ball.dart @@ -85,10 +85,10 @@ class Ball extends BodyComponent body.gravityScale = Vector2(0, 1); } - /// Applies a boost and [_TurboChargeSpriteAnimation] on this [Ball]. + /// Applies a boost and [_TurboChargeSpriteAnimationComponent] on this [Ball]. Future boost(Vector2 impulse) async { body.linearVelocity = impulse; - await add(_TurboChargeSpriteAnimation()); + await add(_TurboChargeSpriteAnimationComponent()); } @override @@ -147,9 +147,9 @@ class _BallSpriteComponent extends SpriteComponent with HasGameRef { } } -class _TurboChargeSpriteAnimation extends SpriteAnimationComponent +class _TurboChargeSpriteAnimationComponent extends SpriteAnimationComponent with HasGameRef { - _TurboChargeSpriteAnimation() + _TurboChargeSpriteAnimationComponent() : super( anchor: const Anchor(0.53, 0.72), priority: Ball.boardPriority + 1,