Class: Zyps::CollisionCondition
- Defined in:
- lib/zyps/conditions.rb
Overview
True only if collided with target.
Instance Method Summary collapse
-
#select(actor, targets) ⇒ Object
Returns an array of targets that have collided with the actor.
Methods inherited from Condition
Instance Method Details
#select(actor, targets) ⇒ Object
Returns an array of targets that have collided with the actor.
69 70 71 |
# File 'lib/zyps/conditions.rb', line 69 def select(actor, targets) targets.find_all {|target| Utility.collided?(actor, target)} end |