hitBy method

  1. @override
void hitBy (Entity e)
override

Called when Entity e collides with this Entity

Implementation

@override
void hitBy(Entity e) {
  if (e is Dozer) {
    this.value = 0;
  }
}