diff --git a/lib/game/components/flutter_forest.dart b/lib/game/components/flutter_forest.dart index b8f26ce8..b1fff40b 100644 --- a/lib/game/components/flutter_forest.dart +++ b/lib/game/components/flutter_forest.dart @@ -60,19 +60,23 @@ class FlutterForest extends Component } /// {@template dash_nest_bumper} -/// Body that repels a [Ball] on contact. -/// -/// When hit, the [GameState.score] is increased. +/// Bumper located in the [FlutterForest]. /// {@endtemplate} @visibleForTesting abstract class DashNestBumper extends BodyComponent with ScorePoints, InitialPosition { - /// {@template dash_nest_bumper} + /// {@macro dash_nest_bumper} DashNestBumper({required this.id}); + /// Unique identifier for this [DashNestBumper]. + /// + /// Used to identify [DashNestBumper]s in [GameState.activatedDashNests]. final String id; } +/// {@template bottom_wall_ball_contact_callback} +/// Listens when a [Ball] falls bounces against a [DashNestBumper]. +/// {@endtemplate} @visibleForTesting class DashNestBumperBallContactCallback extends ContactCallback { @@ -84,8 +88,10 @@ class DashNestBumperBallContactCallback } } +/// {@macro dash_nest_bumper} @visibleForTesting class BigDashNestBumper extends DashNestBumper { + /// {@macro dash_nest_bumper} BigDashNestBumper({required String id}) : super(id: id); @override @@ -105,8 +111,10 @@ class BigDashNestBumper extends DashNestBumper { } } +/// {@macro dash_nest_bumper} @visibleForTesting class SmallDashNestBumper extends DashNestBumper { + /// {@macro dash_nest_bumper} SmallDashNestBumper({required String id}) : super(id: id); @override