livingEnemies method

  1. @override
Iterable<Enemy> livingEnemies({
  1. bool onlyVisible = false,
})
override

Used to get living "Enemies" or oly visibles.

Implementation

@override
Iterable<Enemy> livingEnemies({bool onlyVisible = false}) {
  return enemies(onlyVisible: onlyVisible)
      .where((element) => !element.isDead);
}