From a82a7c116eb7f37b11ec271c67bc4909c469eb13 Mon Sep 17 00:00:00 2001 From: Allison Ryan Date: Mon, 9 May 2022 18:28:31 -0500 Subject: [PATCH] fix: appease cspell --- lib/game/behaviors/animatronic_looping_behavior.dart | 4 ++-- lib/game/components/flutter_forest/flutter_forest.dart | 2 +- lib/game/components/sparky_scorch/sparky_scorch.dart | 2 +- .../behaviors/animatronic_looping_behavior_test.dart | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/game/behaviors/animatronic_looping_behavior.dart b/lib/game/behaviors/animatronic_looping_behavior.dart index 9ee251e6..ec741608 100644 --- a/lib/game/behaviors/animatronic_looping_behavior.dart +++ b/lib/game/behaviors/animatronic_looping_behavior.dart @@ -4,8 +4,8 @@ import 'package:pinball_flame/pinball_flame.dart'; class AnimatronicLoopingBehavior extends TimerComponent with ParentIsA { AnimatronicLoopingBehavior({ - required double animationCooldown, - }) : super(period: animationCooldown); + required double animationCoolDown, + }) : super(period: animationCoolDown); @override Future onLoad() async { diff --git a/lib/game/components/flutter_forest/flutter_forest.dart b/lib/game/components/flutter_forest/flutter_forest.dart index 29d251a9..57bd24c4 100644 --- a/lib/game/components/flutter_forest/flutter_forest.dart +++ b/lib/game/components/flutter_forest/flutter_forest.dart @@ -42,7 +42,7 @@ class FlutterForest extends Component with ZIndex { )..initialPosition = Vector2(21.8, -46.75), DashAnimatronic( children: [ - AnimatronicLoopingBehavior(animationCooldown: 4), + AnimatronicLoopingBehavior(animationCoolDown: 4), ], )..position = Vector2(20, -66), FlutterForestBonusBehavior(), diff --git a/lib/game/components/sparky_scorch/sparky_scorch.dart b/lib/game/components/sparky_scorch/sparky_scorch.dart index d9c6f2ed..c7cd71d3 100644 --- a/lib/game/components/sparky_scorch/sparky_scorch.dart +++ b/lib/game/components/sparky_scorch/sparky_scorch.dart @@ -35,7 +35,7 @@ class SparkyScorch extends Component { )..initialPosition = Vector2(-3.3, -52.55), SparkyAnimatronic( children: [ - AnimatronicLoopingBehavior(animationCooldown: 3), + AnimatronicLoopingBehavior(animationCoolDown: 3), ], )..position = Vector2(-14, -58.2), SparkyComputer( diff --git a/test/game/behaviors/animatronic_looping_behavior_test.dart b/test/game/behaviors/animatronic_looping_behavior_test.dart index 44aa16b5..0aacd508 100644 --- a/test/game/behaviors/animatronic_looping_behavior_test.dart +++ b/test/game/behaviors/animatronic_looping_behavior_test.dart @@ -28,7 +28,7 @@ void main() { group('AnimatronicLoopingBehavior', () { test('can be instantiated', () { expect( - AnimatronicLoopingBehavior(animationCooldown: 1), + AnimatronicLoopingBehavior(animationCoolDown: 1), isA(), ); }); @@ -36,7 +36,7 @@ void main() { flameTester.test( 'can be added', (game) async { - final behavior = AnimatronicLoopingBehavior(animationCooldown: 1); + final behavior = AnimatronicLoopingBehavior(animationCoolDown: 1); final animation = _MockSpriteAnimation(); final spriteAnimationComponent = _TestSpriteAnimationComponent() ..animation = animation; @@ -52,7 +52,7 @@ void main() { flameTester.test( 'onTick starts playing the animation', (game) async { - final behavior = AnimatronicLoopingBehavior(animationCooldown: 1); + final behavior = AnimatronicLoopingBehavior(animationCoolDown: 1); final spriteAnimationComponent = _TestSpriteAnimationComponent(); await game.ensureAdd(spriteAnimationComponent); await spriteAnimationComponent.add(behavior); @@ -67,7 +67,7 @@ void main() { flameTester.test( 'animation onComplete resets and stops playing the animation', (game) async { - final behavior = AnimatronicLoopingBehavior(animationCooldown: 1); + final behavior = AnimatronicLoopingBehavior(animationCoolDown: 1); final spriteAnimationComponent = DashAnimatronic(); await game.ensureAdd(spriteAnimationComponent); @@ -86,7 +86,7 @@ void main() { flameTester.test( 'animation onComplete resets and starts the timer', (game) async { - final behavior = AnimatronicLoopingBehavior(animationCooldown: 1); + final behavior = AnimatronicLoopingBehavior(animationCoolDown: 1); final spriteAnimationComponent = DashAnimatronic(); await game.ensureAdd(spriteAnimationComponent);