|
|
@ -12,7 +12,6 @@ class GameBloc extends Bloc<GameEvent, GameState> {
|
|
|
|
on<Scored>(_onScored);
|
|
|
|
on<Scored>(_onScored);
|
|
|
|
on<MultiplierIncreased>(_onIncreasedMultiplier);
|
|
|
|
on<MultiplierIncreased>(_onIncreasedMultiplier);
|
|
|
|
on<BonusActivated>(_onBonusActivated);
|
|
|
|
on<BonusActivated>(_onBonusActivated);
|
|
|
|
on<SparkyTurboChargeActivated>(_onSparkyTurboChargeActivated);
|
|
|
|
|
|
|
|
on<GameOver>(_onGameOver);
|
|
|
|
on<GameOver>(_onGameOver);
|
|
|
|
on<GameStarted>(_onGameStarted);
|
|
|
|
on<GameStarted>(_onGameStarted);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -65,18 +64,4 @@ class GameBloc extends Bloc<GameEvent, GameState> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<void> _onSparkyTurboChargeActivated(
|
|
|
|
|
|
|
|
SparkyTurboChargeActivated event,
|
|
|
|
|
|
|
|
Emitter emit,
|
|
|
|
|
|
|
|
) async {
|
|
|
|
|
|
|
|
emit(
|
|
|
|
|
|
|
|
state.copyWith(
|
|
|
|
|
|
|
|
bonusHistory: [
|
|
|
|
|
|
|
|
...state.bonusHistory,
|
|
|
|
|
|
|
|
GameBonus.sparkyTurboCharge,
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|