Closed Larcheveque closed 3 years ago
The change is to do here:
generateInteractionsOf: aDrawable targetingDrawable: aTargetDrawable aDrawable allInteractions select: [ :anInteraction | anInteraction condition value: aTargetDrawable ] thenDo: [ :anInteraction | anInteraction generateWith: self on: aDrawable targeting: aTargetDrawable ]
should become
generateInteractionsOf: aDrawable targetingDrawable: aTargetDrawable aDrawable allInteractions select: [ :anInteraction | anInteraction condition cull: aTargetDrawable entity cull: aTargetDrawable ] thenDo: [ :anInteraction | anInteraction generateWith: self on: aDrawable targeting: aTargetDrawable ]
non sense because action can be performed on drawables without entity
The change is to do here:
should become