livingEnemies method

  1. @override
Iterable<Enemy> livingEnemies()
override

Used to get living "Enemies".

Implementation

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