From 0a54cf62de1aa02a62c36f4b7fb7852d03a8111e Mon Sep 17 00:00:00 2001 From: alestiago Date: Tue, 29 Mar 2022 13:43:37 +0100 Subject: [PATCH] refactor: renamed egg to extra --- lib/game/components/ball.dart | 6 ++++-- lib/game/components/flutter_forest.dart | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/game/components/ball.dart b/lib/game/components/ball.dart index d03ec96a..aca2b154 100644 --- a/lib/game/components/ball.dart +++ b/lib/game/components/ball.dart @@ -15,8 +15,10 @@ enum BallType { /// the [BottomWall]. normal, - /// A [Ball] was spawned by Dash in the [FlutterForest]. - egg, + /// A [Ball] that does not alter [GameState.balls]. + /// + /// For example, a [Ball] spawned by Dash in the [FlutterForest]. + extra, } /// {@template ball_blueprint} diff --git a/lib/game/components/flutter_forest.dart b/lib/game/components/flutter_forest.dart index 28f895bf..5b91ee40 100644 --- a/lib/game/components/flutter_forest.dart +++ b/lib/game/components/flutter_forest.dart @@ -35,7 +35,7 @@ class FlutterForest extends Component gameRef.addFromBlueprint( BallBlueprint( position: Vector2(17.2, 52.7), - type: BallType.egg, + type: BallType.extra, ), ); }