visibleEnemies method

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

Used to get visible "Enemies".

Implementation

@override
Iterable<Enemy> visibleEnemies() {
  return _visibleComponents.where((element) => (element is Enemy)).cast();
}