attackables method

  1. @override
Iterable<Attackable> attackables()
override

Used to get all "Attackables".

Implementation

@override
Iterable<Attackable> attackables() {
  return children.where((element) => (element is Attackable)).cast();
}