pull/149/head
RuiAlonso 4 years ago
parent c0e8aebaf0
commit 5d85840d64

@ -5,7 +5,7 @@ import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart'; import 'package:pinball_components/pinball_components.dart';
/// {@template dash_nest_bumper} /// {@template dash_nest_bumper}
/// Bumpers for Dash forest. /// Bumper with a nest appearance.
/// {@endtemplate} /// {@endtemplate}
abstract class DashNestBumper extends Bumper { abstract class DashNestBumper extends Bumper {
/// {@macro dash_nest_bumper} /// {@macro dash_nest_bumper}
@ -20,11 +20,9 @@ abstract class DashNestBumper extends Bumper {
); );
} }
/// {@template big_dash_nest_bumper} /// {@macro dash_nest_bumper}
/// Bumpers with a Dash over it.
/// {@endtemplate}
class BigDashNestBumper extends DashNestBumper { class BigDashNestBumper extends DashNestBumper {
/// {@macro big_dash_nest_bumper} /// {@macro dash_nest_bumper}
BigDashNestBumper() BigDashNestBumper()
: super( : super(
activeAssetPath: Assets.images.dashBumper.main.active.keyName, activeAssetPath: Assets.images.dashBumper.main.active.keyName,
@ -52,11 +50,9 @@ class BigDashNestBumper extends DashNestBumper {
} }
} }
/// {@template small_dash_nest_bumper} /// {@macro dash_nest_bumper}
/// Bumpers with a nest appearance.
/// {@endtemplate}
class SmallDashNestBumper extends DashNestBumper { class SmallDashNestBumper extends DashNestBumper {
/// {@macro small_dash_nest_bumper} /// {@macro dash_nest_bumper}
SmallDashNestBumper._({ SmallDashNestBumper._({
required String activeAssetPath, required String activeAssetPath,
required String inactiveAssetPath, required String inactiveAssetPath,
@ -67,7 +63,7 @@ class SmallDashNestBumper extends DashNestBumper {
spriteComponent: spriteComponent, spriteComponent: spriteComponent,
); );
/// {@macro small_dash_nest_bumper} /// {@macro dash_nest_bumper}
SmallDashNestBumper.a() SmallDashNestBumper.a()
: this._( : this._(
activeAssetPath: Assets.images.dashBumper.a.active.keyName, activeAssetPath: Assets.images.dashBumper.a.active.keyName,
@ -78,7 +74,7 @@ class SmallDashNestBumper extends DashNestBumper {
), ),
); );
/// {@macro small_dash_nest_bumper} /// {@macro dash_nest_bumper}
SmallDashNestBumper.b() SmallDashNestBumper.b()
: this._( : this._(
activeAssetPath: Assets.images.dashBumper.b.active.keyName, activeAssetPath: Assets.images.dashBumper.b.active.keyName,

Loading…
Cancel
Save